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

This commit is contained in:
Olaoluwa Osuntokun committed 2017-04-17 12:39:49 -07:00
1 parent bf7701cd62
commit 4939443512
1 file changed
+1
+1
View File
@@ -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)
}