mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
test: fix basic funding integration test flakiness
This commit fixes some flakiness exhibited in the current basic funding workflow tests. This test can fail occasionally in resource constrained environment due to a race condition which arises after Alice learns of the channel, but Bob is still waiting for Alice’s notification. As a temporary fix, we now only check Alice’s state for the existence of the channel.
This commit is contained in:
@ -65,8 +65,11 @@ func testBasicChannelFunding(net *networkHarness, t *testing.T) {
|
||||
|
||||
// The channel should be listed in the peer information returned by
|
||||
// both peers.
|
||||
err = net.AssertChannelExists(ctxb, net.AliceClient, net.BobClient,
|
||||
fundingChanPoint)
|
||||
chanPoint := wire.OutPoint{
|
||||
Hash: *fundingTxID,
|
||||
Index: fundingChanPoint.OutputIndex,
|
||||
}
|
||||
err = net.AssertChannelExists(ctxb, net.AliceClient, &chanPoint)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to assert channel existence: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user