test: fix race condition in framework by waiting for goroutine exit
This commit is contained in:
parent
bf7701cd62
commit
4939443512
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user