lntest: timeout if process not exited in 1 minute

This commit is contained in:
Johan T. Halseth 2018-04-13 09:09:26 +02:00
parent 86ad6d318e
commit 25d56eda6f
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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()