Skip to content

Commit

Permalink
Try to make test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfinnell committed Sep 12, 2020
1 parent e7fe19f commit e31fab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/RestLikeKitTests/HTTPClientTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ final class HTTPClientTest: XCTestCase {
}).store(in: &cancellables)

wait(until: urlSession.dataTask_wasCalled)

wait(until: urlSession.dataTask_stubbed.resume_wasCalled)

XCTAssertTrue(httpRequestEncoder.encode_wasCalled)
XCTAssertTrue(urlSession.dataTask_wasCalled)
XCTAssertEqual(urlSession.dataTask_wasCalled_withArgs?.request, httpRequestEncoder.encode_stubbed)
Expand Down

0 comments on commit e31fab4

Please sign in to comment.