Skip to content

Commit

Permalink
Log errors if failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Jul 18, 2022
1 parent 18e4a39 commit fbd08d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Tests/ConcurrencyTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class AsyncTestCase: ProtocolStubbedTestCase {
let _ = try await handle.value
XCTFail("should not receive response")
} catch {
if (error as? APIError)?.isCancelled == false {
print(error)
print(error as? APIError)
print((error as? APIError)?.error)
}
XCTAssertTrue((error as? APIError)?.isCancelled ?? false)
}
}
Expand Down

0 comments on commit fbd08d5

Please sign in to comment.