Skip to content

Commit

Permalink
itest: Use testctx in flaky test
Browse files Browse the repository at this point in the history
Trying to determine cause of test failure.
  • Loading branch information
matheusd committed May 17, 2024
1 parent 6677711 commit 5cd7626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lntest/itest/lnd_open_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ func testOpenChannelAfterReorg(net *lntest.NetworkHarness, t *harnessTest) {

// Connecting to the temporary miner should now cause our original
// chain to be re-orged out.
err = rpctest.ConnectNode(ctxb, net.Miner.Harness, tempMiner.Harness)
err = rpctest.ConnectNode(testctx.New(t), net.Miner.Harness, tempMiner.Harness)
if err != nil {
t.Fatalf("unable to remove node: %v", err)
t.Fatalf("unable to connect nodes: %v", err)
}

nodes := []*rpctest.Harness{tempMiner.Harness, net.Miner.Harness}
Expand Down

0 comments on commit 5cd7626

Please sign in to comment.