diff --git a/Tests/TaskManagerTests/TaskManagerTests.swift b/Tests/TaskManagerTests/TaskManagerTests.swift index 6bf4c3e..cee5230 100644 --- a/Tests/TaskManagerTests/TaskManagerTests.swift +++ b/Tests/TaskManagerTests/TaskManagerTests.swift @@ -1,3 +1,4 @@ +import t import XCTest @testable import TaskManager @@ -31,8 +32,6 @@ final class TaskManagerTests: XCTestCase { taskManager.cancel(key: .loop) - try await taskManager.wait(for: .loop) - - print("Infinite Loop Task was cancelled") + try await t.assertThrows(try await taskManager.wait(for: .loop)) } }