Skip to content

Commit

Permalink
Fix protobuf types
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Oct 13, 2023
1 parent a6b8624 commit 3980079
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/test-manager/src/tests/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ pub async fn reset_relay_settings(
mullvad_client
.set_obfuscation_settings(types::ObfuscationSettings {
selected_obfuscation: i32::from(types::obfuscation_settings::SelectedObfuscation::Off),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: 0 }),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: None }),
})
.await
.map(|_| ())
Expand Down
7 changes: 3 additions & 4 deletions test/test-manager/src/tests/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,9 @@ pub async fn test_upgrade_app(ctx: TestContext, rpc: ServiceClient) -> Result<()
location:
Some(types::LocationConstraint {
r#type:
Some(types::location_constraint::Type::Location(types::RelayLocation {
country,
..
})),
Some(types::location_constraint::Type::Location(
types::GeographicLocationConstraint { country, .. },
)),
}),
..
})),
Expand Down
4 changes: 2 additions & 2 deletions test/test-manager/src/tests/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub async fn test_udp2tcp_tunnel(
selected_obfuscation: i32::from(
types::obfuscation_settings::SelectedObfuscation::Udp2tcp,
),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: 0 }),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: None }),
})
.await
.expect("failed to enable udp2tcp");
Expand Down Expand Up @@ -595,7 +595,7 @@ pub async fn test_quantum_resistant_multihop_udp2tcp_tunnel(
selected_obfuscation: i32::from(
types::obfuscation_settings::SelectedObfuscation::Udp2tcp,
),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: 0 }),
udp2tcp: Some(types::Udp2TcpObfuscationSettings { port: None }),
})
.await
.expect("Failed to enable obfuscation");
Expand Down

0 comments on commit 3980079

Please sign in to comment.