File tree 2 files changed +8
-1
lines changed
Coder Desktop/Coder DesktopTests
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
@testable import Coder_Desktop
2
2
import Combine
3
+ import NetworkExtension
3
4
import SwiftUI
4
5
import ViewInspector
5
6
@@ -20,6 +21,8 @@ class MockVPNService: VPNService, ObservableObject {
20
21
state = . disconnecting
21
22
await onStop ? ( )
22
23
}
24
+
25
+ func configureTunnelProviderProtocol( proto _: NETunnelProviderProtocol ? ) { }
23
26
}
24
27
25
28
class MockSession : Session {
@@ -41,6 +44,10 @@ class MockSession: Session {
41
44
sessionToken = nil
42
45
baseAccessURL = nil
43
46
}
47
+
48
+ func tunnelProviderProtocol( ) -> NETunnelProviderProtocol ? {
49
+ return nil
50
+ }
44
51
}
45
52
46
53
struct MockClient : Client {
Original file line number Diff line number Diff line change 15
15
$(FMTFLAGS ) .
16
16
17
17
test :
18
- xcodebuild test \
18
+ set -o pipefail && xcodebuild test \
19
19
-project $(PROJECT ) \
20
20
-scheme $(SCHEME ) \
21
21
-testPlan $(SCHEME ) \
You can’t perform that action at this time.
0 commit comments