From 467698142d590411ac2574ef9aae4a2b739d0d0f Mon Sep 17 00:00:00 2001 From: t-bast Date: Wed, 26 Jul 2023 17:40:48 +0200 Subject: [PATCH] Increase rpc timeout Since the issue doesn't seem to repro anymore... --- .../acinq/lightning/blockchain/electrum/ElectrumClientTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonTest/kotlin/fr/acinq/lightning/blockchain/electrum/ElectrumClientTest.kt b/src/commonTest/kotlin/fr/acinq/lightning/blockchain/electrum/ElectrumClientTest.kt index 181637c4c..dd2c992c0 100644 --- a/src/commonTest/kotlin/fr/acinq/lightning/blockchain/electrum/ElectrumClientTest.kt +++ b/src/commonTest/kotlin/fr/acinq/lightning/blockchain/electrum/ElectrumClientTest.kt @@ -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 }