https://kotlinlang.org logo
o

ovitrif

01/11/2018, 9:39 AM
Guys, sorry if off-topic here, but I got no Idea how to fix this, I'm trying to unit test a delayed subscription, basically this is what I do:
Copy code
aFunctionReturningASingle(userProfileCacheInteractor)
                .delay(TimeValues.MEDIUM.toLong(), TimeUnit.MILLISECONDS)
                .subscribeOn(executionThreads.computation())
                .observeOn(executionThreads.ui())
                .doOnSuccess { userProfile ->
                    showKey(userProfile.digitalKey).subscribeEmpty()
                }
                .subscribe({},{})