Skip to content

Commit 8c874c4

Browse files
committed
Improves sleep method in unit tests.
1 parent 11675f0 commit 8c874c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/RxTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension RxTest {
8383
}
8484

8585
func sleep(_ time: TimeInterval) {
86-
let _ = RunLoop.current.run(mode: RunLoopMode.defaultRunLoopMode, before: Date(timeIntervalSinceNow: time))
86+
Thread.sleep(forTimeInterval: time)
8787
}
8888

8989
func setUpActions(){

0 commit comments

Comments
 (0)