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 {
9595 }
9696 }
9797
98- runLoop. add ( timer, forMode: . defaultRunLoopMode )
98+ runLoop. add ( timer, forMode: . default )
9999 queue. async {
100100 self . timer = timer
101101 }
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ private extension XCTWaiter {
362362 let timeIntervalToRun = min ( 0.1 , timeout)
363363
364364 // 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) )
366366 }
367367
368368 func cancelPrimitiveWait( ) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class ExpectationsTestCase: XCTestCase {
4747 let timer = Timer . scheduledTimer ( withTimeInterval: 0.1 , repeats: false ) { _ in
4848 expectation. fulfill ( )
4949 }
50- RunLoop . current. add ( timer, forMode: . defaultRunLoopMode )
50+ RunLoop . current. add ( timer, forMode: . default )
5151 waitForExpectations ( timeout: 1.0 )
5252 }
5353
@@ -59,7 +59,7 @@ class ExpectationsTestCase: XCTestCase {
5959 let timer = Timer . scheduledTimer ( withTimeInterval: 1.0 , repeats: false ) { _ in
6060 expectation. fulfill ( )
6161 }
62- RunLoop . current. add ( timer, forMode: . defaultRunLoopMode )
62+ RunLoop . current. add ( timer, forMode: . default )
6363 waitForExpectations ( timeout: 0.1 )
6464 }
6565
You can’t perform that action at this time.
0 commit comments