mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 18:06:18 +02:00
lntest: timeout if process not exited in 1 minute
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user