Skip to content

Commit

Permalink
Increase rpc timeout
Browse files Browse the repository at this point in the history
Since the issue doesn't seem to repro anymore...
  • Loading branch information
t-bast committed Jul 26, 2023
1 parent aa1c68d commit 4676981
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,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("setting low RPC timeout")
client.setRpcTimeout(1.milliseconds)
client.setRpcTimeout(5.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 4676981

Please sign in to comment.