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:
Olaoluwa Osuntokun committed 2017-08-01 12:53:17 -07:00
1 parent 09719626e5
commit b6057abe93
3 files changed
+8 -9

No files matched your search

+2 -2
View File
@@ -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)
}
}