Skip to content

Commit d33158d

Browse files
committed
Switch async friendly expectation fulfillment API when available
feature/upcoming-features
1 parent 5317228 commit d33158d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Tests/NetworkServiceTestHelperTests/MockNetworkServiceTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@
8888
XCTAssertEqual(try result.get(), MockingBird.chirp)
8989
expectation.fulfill()
9090
}
91-
wait(for: [expectation], timeout: 2)
91+
#if swift(>=5.8)
92+
await fulfillment(of: [expectation], timeout: 2)
93+
#else
94+
wait(for: [expectation], timeout: 2)
95+
#endif
9296
task.cancel()
9397
}
9498
}

0 commit comments

Comments
 (0)