Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions chainntnfs/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)

Expand Down