Skip to content

Commit c37bc7e

Browse files
committed
Enable integration tests for macOS split tunneling
1 parent f993b1e commit c37bc7e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/test-manager/src/tests/split_tunnel.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const CONN_CHECKER_TIMEOUT: Duration = Duration::from_millis(
3434
/// - Splitting a process shouldn't do anything if tunnel is not connected.
3535
/// - A split process should never push traffic through the tunnel.
3636
/// - Splitting/unsplitting should work regardless if process is running.
37-
#[test_function(target_os = "linux", target_os = "windows")]
37+
#[test_function]
3838
pub async fn test_split_tunnel(
3939
_ctx: TestContext,
4040
rpc: ServiceClient,
@@ -190,13 +190,12 @@ impl ConnChecker {
190190

191191
match TEST_CONFIG.os {
192192
Os::Linux => { /* linux programs can't be split in the management interface until they are spawned */ }
193-
Os::Windows => {
193+
Os::Windows | Os::Macos => {
194194
self.mullvad_client
195195
.add_split_tunnel_app(&self.executable_path)
196196
.await?;
197197
self.mullvad_client.set_split_tunnel_state(true).await?;
198198
}
199-
Os::Macos => unimplemented!("MacOS"),
200199
}
201200

202201
Ok(())
@@ -209,13 +208,12 @@ impl ConnChecker {
209208

210209
match TEST_CONFIG.os {
211210
Os::Linux => {}
212-
Os::Windows => {
211+
Os::Windows | Os::Macos => {
213212
self.mullvad_client.set_split_tunnel_state(false).await?;
214213
self.mullvad_client
215214
.remove_split_tunnel_app(&self.executable_path)
216215
.await?;
217216
}
218-
Os::Macos => unimplemented!("MacOS"),
219217
}
220218

221219
Ok(())

0 commit comments

Comments
 (0)