diff --git a/lntest/node.go b/lntest/node.go index 1122e0889..502ae52f6 100644 --- a/lntest/node.go +++ b/lntest/node.go @@ -429,7 +429,12 @@ func (hn *HarnessNode) stop() error { } // Wait for lnd process and other goroutines to exit. - <-hn.processExit + select { + case <-hn.processExit: + case <-time.After(60 * time.Second): + return fmt.Errorf("process did not exit") + } + close(hn.quit) hn.wg.Wait()