Skip to content

Commit 0dd1827

Browse files
committed
include proto tests
1 parent e0c3139 commit 0dd1827

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Coder Desktop/Coder Desktop.xctestplan

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
},
1818
"testTargets" : [
1919
{
20-
"parallelizable" : true,
20+
"target" : {
21+
"containerPath" : "container:Coder Desktop.xcodeproj",
22+
"identifier" : "961679D82D030E1D00B2B6DF",
23+
"name" : "ProtoTests"
24+
}
25+
},
26+
{
2127
"target" : {
2228
"containerPath" : "container:Coder Desktop.xcodeproj",
2329
"identifier" : "9616790E2CFF100E00B2B6DF",

Coder Desktop/ProtoTests/ProtoTests.swift

+5-10
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ struct HandshakerTests {
156156
#expect(versionMgr == tc.result)
157157
}
158158

159-
@Test
160-
func incompatible() async throws {
159+
@Test func incompatible() async throws {
161160
let uutTun = Handshaker(
162161
writeFD: pipeTM.fileHandleForWriting, dispatch: dispatchT, queue: queue, role: .tunnel,
163162
versions: [ProtoVersion(1, 8)]
@@ -201,8 +200,7 @@ struct OneSidedHandshakerTests {
201200
)
202201
}
203202

204-
@Test()
205-
func badPreamble() async throws {
203+
@Test func badPreamble() async throws {
206204
let taskTun = Task {
207205
try await uut.handshake()
208206
}
@@ -214,8 +212,7 @@ struct OneSidedHandshakerTests {
214212
}
215213
}
216214

217-
@Test(.timeLimit(.minutes(1)))
218-
func badRole() async throws {
215+
@Test func badRole() async throws {
219216
let taskTun = Task {
220217
try await uut.handshake()
221218
}
@@ -227,8 +224,7 @@ struct OneSidedHandshakerTests {
227224
}
228225
}
229226

230-
@Test(.timeLimit(.minutes(1)))
231-
func badVersion() async throws {
227+
@Test func badVersion() async throws {
232228
let taskTun = Task {
233229
try await uut.handshake()
234230
}
@@ -240,8 +236,7 @@ struct OneSidedHandshakerTests {
240236
}
241237
}
242238

243-
@Test(.timeLimit(.minutes(1)))
244-
func mainline() async throws {
239+
@Test func mainline() async throws {
245240
let taskTun = Task {
246241
let v = try await uut.handshake()
247242
// close our pipe so that `readToEnd()` below succeeds.

0 commit comments

Comments
 (0)