You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test occasionally fails (about 200 out of 1000 fail):
@Test
funtest() {
var t:Throwable?=nullRxJavaPlugins.setErrorHandler { t = it }
Observable.timer(0L, MILLISECONDS).blockingFirst()
t?.let { throw it }
}
Stacktrace:
java.lang.IllegalStateException: Disposable already set!
at io.reactivex.internal.disposables.DisposableHelper.reportDisposableSet(DisposableHelper.java:144)
at io.reactivex.internal.disposables.DisposableHelper.setOnce(DisposableHelper.java:70)
at io.reactivex.internal.operators.observable.ObservableTimer$IntervalOnceObserver.setResource(ObservableTimer.java:74)
at io.reactivex.internal.operators.observable.ObservableTimer.subscribeActual(ObservableTimer.java:40)
at io.reactivex.Observable.subscribe(Observable.java:10514)
at io.reactivex.Observable.blockingFirst(Observable.java:4535)
at myapp.MyTest.test(MyTest.kt:15)
Thanks for reporting. If the emission happens before the setResource call, the setResource will find the wrong reference there and complain about it. I'll fix it shortly.
The following test occasionally fails (about 200 out of 1000 fail):
Stacktrace:
Whenever the test fails, IntervalOnceObserver#setResource is called after it is disposed.
The text was updated successfully, but these errors were encountered: