-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chain: wait for
bitcoind
to finish loading blocks during startup
We sometimes see this error in test, ``` --- FAIL: TestBitcoindEvents (7.72s) --- FAIL: TestBitcoindEvents/Events_via_RPC_Polling (1.00s) bitcoind_events_test.go:480: Error Trace: /home/runner/work/btcwallet/btcwallet/chain/bitcoind_events_test.go:480 /home/runner/work/btcwallet/btcwallet/chain/bitcoind_events_test.go:49 Error: Received unexpected error: -28: Loading block index… Test: TestBitcoindEvents/Events_via_RPC_Polling FAIL ``` which can also happen in real life if `bitcoind` is still loading blocks. This commit adds a retry logic to wait for `bitcoind` to finish its startup.
- Loading branch information
1 parent
506e948
commit 148ac23
Showing
1 changed file
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters