Skip to content

Commit 0d77b79

Browse files
Fix the test (it was broken)
1 parent ac1b516 commit 0d77b79

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/RxSwiftTests/Anomalies.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ extension AnomaliesTest {
184184
observer.on(.next(()))
185185
return Disposables.create()
186186
}
187+
.share(replay: 1)
187188

188189
let triggerRange = 0..<100
189190

@@ -194,16 +195,14 @@ extension AnomaliesTest {
194195
.observe(on: concurrentScheduler)
195196
.flatMap { _ in
196197
sharedSource
197-
.take(1)
198198
}
199+
.take(1)
199200
})
200-
.take(1)
201201

202202
_ = multipleSubscriptions.subscribe(onCompleted: {
203203
exp.fulfill()
204204
})
205205

206-
207-
wait(for: [exp], timeout: 5)
206+
wait(for: [exp], timeout: 1)
208207
}
209208
}

0 commit comments

Comments
 (0)