Skip to content

Commit 27ce902

Browse files
committed
Update cancel test
1 parent 4b65be8 commit 27ce902

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Tests/TaskManagerTests/TaskManagerTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import t
12
import XCTest
23
@testable import TaskManager
34

@@ -31,8 +32,6 @@ final class TaskManagerTests: XCTestCase {
3132

3233
taskManager.cancel(key: .loop)
3334

34-
try await taskManager.wait(for: .loop)
35-
36-
print("Infinite Loop Task was cancelled")
35+
try await t.assertThrows(try await taskManager.wait(for: .loop))
3736
}
3837
}

0 commit comments

Comments
 (0)