test_utils: waitgroup manually spawned goroutines
Found that his can sometimes cause a panic with a negative waitgroup counter.
This commit is contained in:
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user