test: fix race condition in framework by waiting for goroutine exit

This commit is contained in:
Olaoluwa Osuntokun 2017-04-17 12:39:08 -07:00
parent bf7701cd62
commit 4939443512
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -280,6 +280,7 @@ func (l *lightningNode) Stop() error {
}
close(l.quit)
l.wg.Wait()
if runtime.GOOS == "windows" {
return l.cmd.Process.Signal(os.Kill)
}