Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f7f8f8

Browse files
fix: set pipefail during make test (#22)
1 parent90d124c commit2f7f8f8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎Coder Desktop/Coder DesktopTests/Util.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@testableimport 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
awaitonStop?()
2223
}
24+
25+
func configureTunnelProviderProtocol(proto _:NETunnelProviderProtocol?){}
2326
}
2427

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

4653
structMockClient:Client{

‎Makefile

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp