test: extend time outs in flaky tests due to Travis CI instance speed variance
This commit is contained in:
parent
9777176d7d
commit
b74b9fc16e
@ -775,13 +775,13 @@ func assertHandleFundingLocked(t *testing.T, alice, bob *testNode) {
|
|||||||
// They should both send the new channel to the breach arbiter.
|
// They should both send the new channel to the breach arbiter.
|
||||||
select {
|
select {
|
||||||
case <-alice.arbiterChan:
|
case <-alice.arbiterChan:
|
||||||
case <-time.After(time.Second * 5):
|
case <-time.After(time.Second * 15):
|
||||||
t.Fatalf("alice did not send channel to breach arbiter")
|
t.Fatalf("alice did not send channel to breach arbiter")
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-bob.arbiterChan:
|
case <-bob.arbiterChan:
|
||||||
case <-time.After(time.Second * 5):
|
case <-time.After(time.Second * 15):
|
||||||
t.Fatalf("bob did not send channel to breach arbiter")
|
t.Fatalf("bob did not send channel to breach arbiter")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -789,14 +789,14 @@ func assertHandleFundingLocked(t *testing.T, alice, bob *testNode) {
|
|||||||
select {
|
select {
|
||||||
case c := <-alice.peer.newChannels:
|
case c := <-alice.peer.newChannels:
|
||||||
close(c.done)
|
close(c.done)
|
||||||
case <-time.After(time.Second * 5):
|
case <-time.After(time.Second * 15):
|
||||||
t.Fatalf("alice did not send new channel to peer")
|
t.Fatalf("alice did not send new channel to peer")
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case c := <-bob.peer.newChannels:
|
case c := <-bob.peer.newChannels:
|
||||||
close(c.done)
|
close(c.done)
|
||||||
case <-time.After(time.Second * 5):
|
case <-time.After(time.Second * 15):
|
||||||
t.Fatalf("bob did not send new channel to peer")
|
t.Fatalf("bob did not send new channel to peer")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2242,7 +2242,7 @@ func TestChannelLinkUpdateCommitFee(t *testing.T) {
|
|||||||
"network fee")
|
"network fee")
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(time.Second * 1)
|
time.Sleep(time.Second * 2)
|
||||||
|
|
||||||
// At this point, Alice should've triggered a new fee update that
|
// At this point, Alice should've triggered a new fee update that
|
||||||
// increased the fee rate to match the new rate.
|
// increased the fee rate to match the new rate.
|
||||||
|
@ -1605,7 +1605,7 @@ func testChannelForceClosure(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wait for the single sweep txn to appear in the mempool.
|
// Wait for the single sweep txn to appear in the mempool.
|
||||||
htlcSweepTxID, err := waitForTxInMempool(net.Miner.Node, 3*time.Second)
|
htlcSweepTxID, err := waitForTxInMempool(net.Miner.Node, 15*time.Second)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to get sweep tx from mempool: %v", err)
|
t.Fatalf("failed to get sweep tx from mempool: %v", err)
|
||||||
}
|
}
|
||||||
@ -1984,7 +1984,7 @@ func testListPayments(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
func testMultiHopPayments(net *lntest.NetworkHarness, t *harnessTest) {
|
func testMultiHopPayments(net *lntest.NetworkHarness, t *harnessTest) {
|
||||||
const chanAmt = btcutil.Amount(100000)
|
const chanAmt = btcutil.Amount(100000)
|
||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
timeout := time.Duration(time.Second * 5)
|
timeout := time.Duration(time.Second * 15)
|
||||||
var networkChans []*lnrpc.ChannelPoint
|
var networkChans []*lnrpc.ChannelPoint
|
||||||
|
|
||||||
// Open a channel with 100k satoshis between Alice and Bob with Alice
|
// Open a channel with 100k satoshis between Alice and Bob with Alice
|
||||||
@ -3313,7 +3313,7 @@ func testHtlcErrorPropagation(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
// In this test we wish to exercise the daemon's correct parsing,
|
// In this test we wish to exercise the daemon's correct parsing,
|
||||||
// handling, and propagation of errors that occur while processing a
|
// handling, and propagation of errors that occur while processing a
|
||||||
// multi-hop payment.
|
// multi-hop payment.
|
||||||
timeout := time.Duration(time.Second * 5)
|
timeout := time.Duration(time.Second * 15)
|
||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
|
|
||||||
const chanAmt = maxFundingAmount
|
const chanAmt = maxFundingAmount
|
||||||
@ -3897,7 +3897,7 @@ func testNodeAnnouncement(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testNodeSignVerify(net *lntest.NetworkHarness, t *harnessTest) {
|
func testNodeSignVerify(net *lntest.NetworkHarness, t *harnessTest) {
|
||||||
timeout := time.Duration(time.Second * 5)
|
timeout := time.Duration(time.Second * 15)
|
||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
|
|
||||||
chanAmt := maxFundingAmount
|
chanAmt := maxFundingAmount
|
||||||
|
Loading…
Reference in New Issue
Block a user