Skip to content

Commit ecdae10

Browse files
committed
Convert RunLoopMode to RunLoop.Mode as with Darwin Foundation
1 parent 8a976c8 commit ecdae10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/XCTest/Public/Asynchronous/XCTNSPredicateExpectation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Sources/XCTest/Public/Asynchronous/XCTWaiter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)