test_utils: waitgroup manually spawned goroutines
Found that his can sometimes cause a panic with a negative waitgroup counter.
This commit is contained in:
parent
ef41fc6249
commit
8b185e6301
@ -394,6 +394,7 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
|
||||
chanID := lnwire.NewChanIDFromOutPoint(channelAlice.ChannelPoint())
|
||||
alicePeer.activeChannels[chanID] = channelAlice
|
||||
|
||||
alicePeer.wg.Add(1)
|
||||
go alicePeer.channelManager()
|
||||
|
||||
return alicePeer, channelAlice, channelBob, cleanUpFunc, nil
|
||||
|
Loading…
Reference in New Issue
Block a user