mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 14:37:29 +03:00
Small fixes for Linux.
This commit is contained in:
parent
f948e46800
commit
95dea91c73
@ -40,7 +40,7 @@
|
||||
public func CFRunLoopRun() {
|
||||
runLoopCounter += 1
|
||||
let currentValueOfCounter = runLoopCounter
|
||||
while let front = queue.tryDequeue() {
|
||||
while let front = queue.dequeue() {
|
||||
front()
|
||||
if runLoopCounter < currentValueOfCounter - 1 {
|
||||
fatalError("called stop twice")
|
||||
@ -199,9 +199,9 @@
|
||||
public func expectationWithDescription(description: String) -> Expectation {
|
||||
return Expectation()
|
||||
}
|
||||
|
||||
|
||||
public func waitForExpectationsWithTimeout(time: NSTimeInterval, action: ErrorType? -> Void) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -9,6 +9,9 @@
|
||||
import Foundation
|
||||
import RxSwift
|
||||
import XCTest
|
||||
#if os(Linux)
|
||||
import Glibc
|
||||
#endif
|
||||
|
||||
class VirtualSchedulerTest : RxTest {
|
||||
|
||||
@ -230,4 +233,4 @@ extension VirtualSchedulerTest {
|
||||
times = times.sort()
|
||||
XCTAssertEqual(times, ticks)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user