hltcswitch: increase timeout for bi-di payment test due to travis slowness
This commit temporary increases the timeout for the TestChannelLinkBidirectionalOneHopPayments test in order to account for the slowness of the travis instances that our tests are run on.
This commit is contained in:
3 files changed
+8
-9
No files matched your search
@@ -181,8 +181,8 @@ func TestChannelLinkBidirectionalOneHopPayments(t *testing.T) {
|
||||
|
||||
// Send max available payment number in both sides, thereby testing
|
||||
// the property of channel link to cope with overflowing.
|
||||
resultChan := make(chan *result)
|
||||
count := 2 * lnwallet.MaxHTLCNumber
|
||||
resultChan := make(chan *result, count)
|
||||
for i := 0; i < count/2; i++ {
|
||||
go func(i int) {
|
||||
r := &result{
|
||||
@@ -236,7 +236,7 @@ func TestChannelLinkBidirectionalOneHopPayments(t *testing.T) {
|
||||
}
|
||||
averageDelay += delay
|
||||
|
||||
case <-time.After(30 * time.Second):
|
||||
case <-time.After(5 * time.Minute):
|
||||
t.Fatalf("timeout: (%v/%v)", i+1, count)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user