mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
lntest/node: make sure finalizing file is over before stop
This commit is contained in:
parent
bca926d6af
commit
ea2b706174
1 changed files with 3 additions and 1 deletions
|
@ -335,9 +335,11 @@ func (hn *HarnessNode) start(lndError chan<- error) error {
|
|||
// Launch a new goroutine which that bubbles up any potential fatal
|
||||
// process errors to the goroutine running the tests.
|
||||
hn.processExit = make(chan struct{})
|
||||
hn.wg.Add(1)
|
||||
go func() {
|
||||
err := hn.cmd.Wait()
|
||||
defer hn.wg.Done()
|
||||
|
||||
err := hn.cmd.Wait()
|
||||
if err != nil {
|
||||
lndError <- errors.Errorf("%v\n%v\n", err, errb.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue