Revert "problem: timeout on unit tests"

This commit is contained in:
a10zn8
2022-12-16 15:19:15 +04:00
committed by GitHub
parent 8c656ca28b
commit 214abc4722
2 changed files with 4 additions and 5 deletions

View File

@@ -405,8 +405,7 @@ open class WsConnection(
)
val response = Flux.from(rpcReceive.asFlux())
// send the request _after_ WS subscribes to the responses, otherwise the response may come before the actual subscription and be lost
.doOnRequest { sendRpc(request) }
.doOnSubscribe { sendRpc(request) }
.filter { resp -> resp.id.asNumber() == expectedId }
.take(Defaults.timeout)
.take(1)