diff --git a/Tests/RxSwiftTests/Tests/MainSchedulerTests.swift b/Tests/RxSwiftTests/Tests/MainSchedulerTests.swift index 9db06822..870338e6 100644 --- a/Tests/RxSwiftTests/Tests/MainSchedulerTests.swift +++ b/Tests/RxSwiftTests/Tests/MainSchedulerTests.swift @@ -18,15 +18,13 @@ class MainSchedulerTest : RxTest { extension MainSchedulerTest { func runRunLoop() { for _ in 0 ..< 10 { - let currentRunLoop = NSRunLoop.currentRunLoop().getCFRunLoop() - + let currentRunLoop = CFRunLoopGetCurrent() dispatch_async(dispatch_get_main_queue()) { CFRunLoopStop(currentRunLoop) } CFRunLoopWakeUp(currentRunLoop) - CFRunLoopRunInMode(NSDefaultRunLoopMode, 1, false) - XCTAssertTrue(currentRunLoop === CFRunLoopGetCurrent()) + CFRunLoopRun() } } }