File tree 1 file changed +3
-5
lines changed
test/test-manager/src/tests
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const CONN_CHECKER_TIMEOUT: Duration = Duration::from_millis(
34
34
/// - Splitting a process shouldn't do anything if tunnel is not connected.
35
35
/// - A split process should never push traffic through the tunnel.
36
36
/// - Splitting/unsplitting should work regardless if process is running.
37
- #[ test_function( target_os = "linux" , target_os = "windows" ) ]
37
+ #[ test_function]
38
38
pub async fn test_split_tunnel (
39
39
_ctx : TestContext ,
40
40
rpc : ServiceClient ,
@@ -190,13 +190,12 @@ impl ConnChecker {
190
190
191
191
match TEST_CONFIG . os {
192
192
Os :: Linux => { /* linux programs can't be split in the management interface until they are spawned */ }
193
- Os :: Windows => {
193
+ Os :: Windows | Os :: Macos => {
194
194
self . mullvad_client
195
195
. add_split_tunnel_app ( & self . executable_path )
196
196
. await ?;
197
197
self . mullvad_client . set_split_tunnel_state ( true ) . await ?;
198
198
}
199
- Os :: Macos => unimplemented ! ( "MacOS" ) ,
200
199
}
201
200
202
201
Ok ( ( ) )
@@ -209,13 +208,12 @@ impl ConnChecker {
209
208
210
209
match TEST_CONFIG . os {
211
210
Os :: Linux => { }
212
- Os :: Windows => {
211
+ Os :: Windows | Os :: Macos => {
213
212
self . mullvad_client . set_split_tunnel_state ( false ) . await ?;
214
213
self . mullvad_client
215
214
. remove_split_tunnel_app ( & self . executable_path )
216
215
. await ?;
217
216
}
218
- Os :: Macos => unimplemented ! ( "MacOS" ) ,
219
217
}
220
218
221
219
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments