Skip to content

Commit

Permalink
Update cancel test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Mar 19, 2023
1 parent 4b65be8 commit 27ce902
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tests/TaskManagerTests/TaskManagerTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import t
import XCTest
@testable import TaskManager

Expand Down Expand Up @@ -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))
}
}

0 comments on commit 27ce902

Please sign in to comment.