Skip to content

Commit

Permalink
Set timeout to 0
Browse files Browse the repository at this point in the history
Since it seems like the timeout is ignored (maybe because of the dispatcher
somehow?).
  • Loading branch information
t-bast committed Jul 27, 2023
1 parent 35e6550 commit 99d635d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -149,7 +149,7 @@ class ElectrumClientTest : LightningTestSuite() {
fun `disconnect from slow servers on subscription attempts`() = runTest { client ->
// Set a very small timeout that the server won't be able to honor.
println("${Clock.System.now()} - setting low RPC timeout")
client.setRpcTimeout(1.milliseconds)
client.setRpcTimeout(0.milliseconds)
val subscriptionJob = async { client.startHeaderSubscription() }
// We automatically disconnect after timing out on the subscription request.
client.connectionStatus.first { it is ElectrumConnectionStatus.Closed }
Expand Down

0 comments on commit 99d635d

Please sign in to comment.