Skip to content

Commit 1f6038e

Browse files
committed
test: increase wallet sync timeout to fix flaky tests
Delete CLAUDE.md
1 parent eecbdda commit 1f6038e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/release-notes/release-notes-0.20.0.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,13 @@ reader of a payment request.
293293
[removed](https://github.com/lightningnetwork/lnd/pull/9967) meaning that any
294294
test network scripts that rely on bootstrapping being disabled will need to
295295
explicitly define the `--nobootstrap` flag. Bootstrapping will now also be
296-
[deterministic](https://github.com/lightningnetwork/lnd/pull/10003) on local
296+
[deterministic](https://github.com/lightningnetwork/lnd/pull/10003) on local
297297
test networks so that bootstrapping behaviour can be tested for.
298298

299+
* [Increased wallet sync timeout](https://github.com/lightningnetwork/lnd/pull/10323)
300+
in integration tests from 30 seconds to 90 seconds to reduce test flakiness
301+
in CI environments, particularly for the neutrino backend wallet sync tests.
302+
299303
## Database
300304

301305
* Add missing [sql index](https://github.com/lightningnetwork/lnd/pull/10155)

lnwallet/test/test_interface.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,12 +3009,12 @@ func waitForWalletSync(r *rpctest.Harness, w *lnwallet.LightningWallet) error {
30093009
bestHash, knownHash *chainhash.Hash
30103010
bestHeight, knownHeight int32
30113011
)
3012-
timeout := time.After(30 * time.Second)
3012+
timeout := time.After(90 * time.Second)
30133013
for !synced {
30143014
// Do a short wait
30153015
select {
30163016
case <-timeout:
3017-
return errors.New("timeout after 30s")
3017+
return errors.New("timeout after 90s")
30183018
case <-time.Tick(100 * time.Millisecond):
30193019
}
30203020

0 commit comments

Comments
 (0)