Skip to content

Commit 2f7f8f8

Browse files
authoredJan 14, 2025··
fix: set pipefail during make test (#22)
1 parent 90d124c commit 2f7f8f8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎Coder Desktop/Coder DesktopTests/Util.swift

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@testable import Coder_Desktop
22
import Combine
3+
import NetworkExtension
34
import SwiftUI
45
import ViewInspector
56

@@ -20,6 +21,8 @@ class MockVPNService: VPNService, ObservableObject {
2021
state = .disconnecting
2122
await onStop?()
2223
}
24+
25+
func configureTunnelProviderProtocol(proto _: NETunnelProviderProtocol?) {}
2326
}
2427

2528
class MockSession: Session {
@@ -41,6 +44,10 @@ class MockSession: Session {
4144
sessionToken = nil
4245
baseAccessURL = nil
4346
}
47+
48+
func tunnelProviderProtocol() -> NETunnelProviderProtocol? {
49+
return nil
50+
}
4451
}
4552

4653
struct MockClient: Client {

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fmt:
1515
$(FMTFLAGS) .
1616

1717
test:
18-
xcodebuild test \
18+
set -o pipefail && xcodebuild test \
1919
-project $(PROJECT) \
2020
-scheme $(SCHEME) \
2121
-testPlan $(SCHEME) \

0 commit comments

Comments
 (0)
Please sign in to comment.