File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Sources/XCTest/Public/Asynchronous
Tests/Functional/Asynchronous/Expectations Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ open class XCTNSPredicateExpectation: XCTestExpectation {
95
95
}
96
96
}
97
97
98
- runLoop. add ( timer, forMode: . defaultRunLoopMode )
98
+ runLoop. add ( timer, forMode: . default )
99
99
queue. async {
100
100
self . timer = timer
101
101
}
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ private extension XCTWaiter {
362
362
let timeIntervalToRun = min ( 0.1 , timeout)
363
363
364
364
// RunLoop.run(mode:before:) should have @discardableResult <rdar://problem/45371901>
365
- _ = runLoop. run ( mode: . defaultRunLoopMode , before: Date ( timeIntervalSinceNow: timeIntervalToRun) )
365
+ _ = runLoop. run ( mode: . default , before: Date ( timeIntervalSinceNow: timeIntervalToRun) )
366
366
}
367
367
368
368
func cancelPrimitiveWait( ) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class ExpectationsTestCase: XCTestCase {
47
47
let timer = Timer . scheduledTimer ( withTimeInterval: 0.1 , repeats: false ) { _ in
48
48
expectation. fulfill ( )
49
49
}
50
- RunLoop . current. add ( timer, forMode: . defaultRunLoopMode )
50
+ RunLoop . current. add ( timer, forMode: . default )
51
51
waitForExpectations ( timeout: 1.0 )
52
52
}
53
53
@@ -59,7 +59,7 @@ class ExpectationsTestCase: XCTestCase {
59
59
let timer = Timer . scheduledTimer ( withTimeInterval: 1.0 , repeats: false ) { _ in
60
60
expectation. fulfill ( )
61
61
}
62
- RunLoop . current. add ( timer, forMode: . defaultRunLoopMode )
62
+ RunLoop . current. add ( timer, forMode: . default )
63
63
waitForExpectations ( timeout: 0.1 )
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments