File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -222,22 +222,22 @@ class TestNSNotificationQueue : XCTestCase {
222
222
// MARK: Private
223
223
224
224
private func scheduleTimer( withInterval interval: TimeInterval ) {
225
- let e = expectation ( withDescription : " Timer " )
225
+ let e = expectation ( description : " Timer " )
226
226
let dummyTimer = Timer . scheduledTimer ( withTimeInterval: interval, repeats: false ) { _ in
227
227
e. fulfill ( )
228
228
}
229
229
RunLoop . current ( ) . add ( dummyTimer, forMode: . defaultRunLoopMode)
230
- waitForExpectations ( withTimeout : 0.1 )
230
+ waitForExpectations ( timeout : 0.1 )
231
231
}
232
232
233
233
private func executeInBackgroundThread( _ operation: ( ) -> Void ) {
234
- let e = expectation ( withDescription : " Background Execution " )
234
+ let e = expectation ( description : " Background Execution " )
235
235
let bgThread = Thread ( ) {
236
236
operation ( )
237
237
e. fulfill ( )
238
238
}
239
239
bgThread. start ( )
240
240
241
- waitForExpectations ( withTimeout : 0.2 )
241
+ waitForExpectations ( timeout : 0.2 )
242
242
}
243
243
}
You can’t perform that action at this time.
0 commit comments