From 31117e6b3018484fdb6d55b62f9935e761d0b35d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 8 Aug 2018 19:45:10 -0700 Subject: [PATCH] lnwallet: lower timeout for waitForWalletSync back to 10s --- lnwallet/interface_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 372c96fba..cc2101543 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -1924,13 +1924,13 @@ func waitForWalletSync(r *rpctest.Harness, w *lnwallet.LightningWallet) error { bestHash, knownHash *chainhash.Hash bestHeight, knownHeight int32 ) - timeout := time.After(30 * time.Second) + timeout := time.After(10 * time.Second) for !synced { // Do a short wait select { case <-timeout: return fmt.Errorf("timeout after 30s") - case <-time.Tick(50 * time.Millisecond): + case <-time.Tick(100 * time.Millisecond): } // Check whether the chain source of the wallet is caught up to