Skip to content

Commit 9f13f1c

Browse files
committed
updates to new release of AsyncTesting which no longer throws from waitForExpectations
* drops concurrency warning which will only be used during development, no releases
1 parent 9888b60 commit 9f13f1c

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ let package = Package(
2424
targets: ["AsyncChannelKit"]),
2525
],
2626
dependencies: [
27-
.package(url: "https://github.com/brennanMKE/AsyncTesting.git", exact: "0.0.5")
27+
.package(url: "https://github.com/brennanMKE/AsyncTesting.git", exact: "0.0.7")
2828
],
2929
targets: [
3030
.target(
3131
name: "AsyncChannelKit",
32-
dependencies: []),
32+
dependencies: [],
33+
swiftSettings: nil
34+
),
3335
.testTarget(
3436
name: "AsyncChannelKitTests",
3537
dependencies: ["AsyncChannelKit", "AsyncTesting"],
36-
swiftSettings: swiftSettings
38+
swiftSettings: nil
3739
),
3840
]
3941
)

Tests/AsyncChannelKitTests/AsyncChannelKitTests.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ final class AsyncChannelKitTests: XCTestCase {
8080
await received.fulfill()
8181
}
8282

83-
try await waitForExpectations([sent, received])
83+
await waitForExpectations([sent, received])
8484
}
8585

8686
func testNumberSequenceUsingForEach() async throws {
@@ -106,7 +106,7 @@ final class AsyncChannelKitTests: XCTestCase {
106106
await received.fulfill()
107107
}
108108

109-
try await waitForExpectations([sent, received])
109+
await waitForExpectations([sent, received])
110110
}
111111

112112
func testStringSequence() async throws {
@@ -131,7 +131,7 @@ final class AsyncChannelKitTests: XCTestCase {
131131
await received.fulfill()
132132
}
133133

134-
try await waitForExpectations([sent, received])
134+
await waitForExpectations([sent, received])
135135
}
136136

137137
func testSucceedingSequence() async throws {
@@ -168,7 +168,7 @@ final class AsyncChannelKitTests: XCTestCase {
168168
await received.fulfill()
169169
}
170170

171-
try await waitForExpectations([sent, received])
171+
await waitForExpectations([sent, received])
172172
}
173173

174174
func testFailingSequence() async throws {
@@ -212,8 +212,8 @@ final class AsyncChannelKitTests: XCTestCase {
212212
await received.fulfill()
213213
}
214214

215-
try await waitForExpectations([sent], timeout: delay * Double(input.count))
216-
try await waitForExpectations([failed, received])
215+
await waitForExpectations([sent], timeout: delay * Double(input.count))
216+
await waitForExpectations([failed, received])
217217
}
218218

219219
func testChannelCancelled() async throws {
@@ -227,7 +227,7 @@ final class AsyncChannelKitTests: XCTestCase {
227227
return await iterator.next()
228228
}
229229

230-
try await waitForExpectations([ready])
230+
await waitForExpectations([ready])
231231
task.cancel()
232232

233233
Task {
@@ -236,7 +236,7 @@ final class AsyncChannelKitTests: XCTestCase {
236236
await done.fulfill()
237237
}
238238

239-
try await waitForExpectations([done])
239+
await waitForExpectations([done])
240240
}
241241

242242
func testThrowingChannelCancelled() async throws {
@@ -250,7 +250,7 @@ final class AsyncChannelKitTests: XCTestCase {
250250
return try await iterator.next()
251251
}
252252

253-
try await waitForExpectations([ready])
253+
await waitForExpectations([ready])
254254
task.cancel()
255255

256256
Task {
@@ -259,7 +259,7 @@ final class AsyncChannelKitTests: XCTestCase {
259259
await done.fulfill()
260260
}
261261

262-
try await waitForExpectations([done])
262+
await waitForExpectations([done])
263263
}
264264

265265
func testChannelCancelledOnSend() async throws {
@@ -274,9 +274,9 @@ final class AsyncChannelKitTests: XCTestCase {
274274
await done.fulfill()
275275
}
276276

277-
try await waitForExpectations([notYetDone], timeout: delay)
277+
await waitForExpectations([notYetDone], timeout: delay)
278278
task.cancel()
279-
try await waitForExpectations([done], timeout: 1.0)
279+
await waitForExpectations([done], timeout: 1.0)
280280
}
281281

282282
func testThrowingChannelCancelledOnSend() async throws {
@@ -291,9 +291,9 @@ final class AsyncChannelKitTests: XCTestCase {
291291
await done.fulfill()
292292
}
293293

294-
try await waitForExpectations([notYetDone], timeout: delay)
294+
await waitForExpectations([notYetDone], timeout: delay)
295295
task.cancel()
296-
try await waitForExpectations([done])
296+
await waitForExpectations([done])
297297
}
298298

299299
}

0 commit comments

Comments
 (0)