test: fix race condition in framework by waiting for goroutine exit
This commit is contained in:
1 file changed
+1
@@ -280,6 +280,7 @@ func (l *lightningNode) Stop() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(l.quit)
|
close(l.quit)
|
||||||
|
l.wg.Wait()
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
return l.cmd.Process.Signal(os.Kill)
|
return l.cmd.Process.Signal(os.Kill)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user