Exposes `driveOnScheduler`.
This commit is contained in:
parent
e445d4eec3
commit
33ffe82139
|
|
@ -178,11 +178,9 @@ public struct Drive {
|
|||
This method can be used in unit tests to ensure that driver is using mock schedulers instead of
|
||||
maind schedulers.
|
||||
|
||||
To be able to use it, please import RxCocoa using testable attribute
|
||||
|
||||
@testable import RxCocoa
|
||||
**This shouldn't be used in normal release builds.**
|
||||
*/
|
||||
func driveOnScheduler(scheduler: SchedulerType, action: () -> ()) {
|
||||
public func driveOnScheduler(scheduler: SchedulerType, action: () -> ()) {
|
||||
let originalObserveOnScheduler = driverObserveOnScheduler
|
||||
let originalSubscribeOnScheduler = driverSubscribeOnScheduler
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import XCTest
|
|||
|
||||
import RxSwift
|
||||
import RxTests
|
||||
@testable import RxCocoa
|
||||
import RxCocoa
|
||||
|
||||
let resolution: NSTimeInterval = 0.2 // seconds
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue