@@ -655,7 +655,7 @@ import XCTest
655
655
] ]
656
656
)
657
657
)
658
- wait ( for : [ expectation] , timeout: timeoutDuration)
658
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
659
659
XCTAssertEqual ( results, expected)
660
660
661
661
// Low priority email shouldn't trigger an event
@@ -668,7 +668,7 @@ import XCTest
668
668
unread: true ,
669
669
priority: 2
670
670
) )
671
- wait ( for : [ expectation] , timeout: timeoutDuration)
671
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
672
672
XCTAssertEqual ( results, expected)
673
673
674
674
// Higher priority one should trigger again
@@ -694,7 +694,7 @@ import XCTest
694
694
] ]
695
695
)
696
696
)
697
- wait ( for : [ expectation] , timeout: timeoutDuration)
697
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
698
698
XCTAssertEqual ( results, expected)
699
699
700
700
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is
@@ -756,7 +756,7 @@ import XCTest
756
756
] ]
757
757
)
758
758
)
759
- wait ( for : [ expectation] , timeout: timeoutDuration)
759
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
760
760
XCTAssertEqual ( results, expected)
761
761
762
762
db. stop ( )
@@ -772,7 +772,7 @@ import XCTest
772
772
) )
773
773
774
774
// Ensure that the current result was the one before the db was stopped
775
- wait ( for : [ expectation] , timeout: timeoutDuration)
775
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
776
776
XCTAssertEqual ( results, expected)
777
777
778
778
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is
@@ -919,7 +919,7 @@ import XCTest
919
919
] ]
920
920
)
921
921
)
922
- wait ( for : [ expectation] , timeout: timeoutDuration)
922
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
923
923
XCTAssertEqual ( results, expected)
924
924
925
925
expectation = XCTestExpectation ( )
@@ -938,7 +938,7 @@ import XCTest
938
938
]
939
939
)
940
940
)
941
- wait ( for : [ expectation] , timeout: timeoutDuration)
941
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
942
942
XCTAssertEqual ( results, expected)
943
943
944
944
expectation = XCTestExpectation ( )
@@ -959,7 +959,7 @@ import XCTest
959
959
] ]
960
960
)
961
961
)
962
- wait ( for : [ expectation] , timeout: timeoutDuration)
962
+ await fulfillment ( of : [ expectation] , timeout: timeoutDuration)
963
963
XCTAssertEqual ( results, expected)
964
964
965
965
// So that the Task won't immediately be cancelled since the ConcurrentEventStream is
0 commit comments