Skip to content

Commit e0a8ff0

Browse files
author
Mike Ferris
authored
Merge pull request #427 from mike-ferris-apple/26611147_Swift3NamingForExpectationStuff
Update expectation based API names for API guidelines
2 parents 74edb43 + f74ecf5 commit e0a8ff0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TestFoundation/TestNSNotificationQueue.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,22 +222,22 @@ class TestNSNotificationQueue : XCTestCase {
222222
// MARK: Private
223223

224224
private func scheduleTimer(withInterval interval: TimeInterval) {
225-
let e = expectation(withDescription: "Timer")
225+
let e = expectation(description: "Timer")
226226
let dummyTimer = Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in
227227
e.fulfill()
228228
}
229229
RunLoop.current().add(dummyTimer, forMode: .defaultRunLoopMode)
230-
waitForExpectations(withTimeout: 0.1)
230+
waitForExpectations(timeout: 0.1)
231231
}
232232

233233
private func executeInBackgroundThread(_ operation: () -> Void) {
234-
let e = expectation(withDescription: "Background Execution")
234+
let e = expectation(description: "Background Execution")
235235
let bgThread = Thread() {
236236
operation()
237237
e.fulfill()
238238
}
239239
bgThread.start()
240240

241-
waitForExpectations(withTimeout: 0.2)
241+
waitForExpectations(timeout: 0.2)
242242
}
243243
}

0 commit comments

Comments
 (0)