From 86c00fb8a6f0f3797657bf176443f696542ad433 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 9 Jan 2024 23:04:37 +0800 Subject: [PATCH] chainntnfs: increase timeout to 30s when creating new bitcoind client Also remove the `t.Helper()` so it's easier to trace down the errors. --- chainntnfs/test_utils.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chainntnfs/test_utils.go b/chainntnfs/test_utils.go index fa6b7cd5684..4dbc1c46265 100644 --- a/chainntnfs/test_utils.go +++ b/chainntnfs/test_utils.go @@ -196,8 +196,6 @@ func NewMiner(t *testing.T, extraArgs []string, createChain bool, func NewBitcoindBackend(t *testing.T, minerAddr string, txindex, rpcpolling bool) *chain.BitcoindConn { - t.Helper() - // We use ioutil.TempDir here instead of t.TempDir because some versions // of bitcoind complain about the zmq connection string formats when the // t.TempDir directory string is used. @@ -267,9 +265,9 @@ func NewBitcoindBackend(t *testing.T, minerAddr string, txindex, } return conn.Start() - }, 10*time.Second) + }, 30*time.Second) if err != nil { - t.Fatalf("unable to establish connection to bitcoind: %v", err) + t.Fatalf("timeout establishing connection to bitcoind: %v", err) } t.Cleanup(conn.Stop)