Skip to content

Commit

Permalink
Fix testTimeout to support new RequestError implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Jul 8, 2020
1 parent 6749d75 commit 703c333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file added Tests/.DS_Store
Binary file not shown.
6 changes: 2 additions & 4 deletions Tests/RequestTests/RequestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,8 @@ final class RequestTests: XCTestCase {
Timeout(1, for: .all)
}
.onError { error in
if let err = error.error, let msg = String(data: err, encoding: .utf8) {
if msg == "The request timed out." {
expectation.fulfill()
}
if error.localizedDescription == "The request timed out." {
expectation.fulfill()
}
}
.call()
Expand Down

0 comments on commit 703c333

Please sign in to comment.