Skip to content

Commit

Permalink
itest: Fix flake in garbage collect link
Browse files Browse the repository at this point in the history
See issue decred#97 for details.
  • Loading branch information
matheusd committed Jun 19, 2020
1 parent 2967b3b commit a030cf7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lntest/itest/lnd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7545,6 +7545,13 @@ func testGarbageCollectLinkNodes(net *lntest.NetworkHarness, t *harnessTest) {
return false
}

// Ensure there's enough time after opening the channel for all nodes
// to process it before shutting them down, otherwise we might deadlock
// waiting for the chain to shut down.
//
// See https://github.com/decred/dcrlnd/issues/97
time.Sleep(time.Second)

// Restart both Bob and Carol to ensure Alice is able to reconnect to
// them.
if err := net.RestartNode(net.Bob, nil); err != nil {
Expand Down

0 comments on commit a030cf7

Please sign in to comment.