htlcswitch/link_test: double timeouts
Double the timeout to allow the htlcswitch tests to finish on slow systems (darwin...).
This commit is contained in:
parent
548827fe89
commit
0a12592b39
@ -1140,7 +1140,7 @@ func TestChannelLinkMultiHopUnknownPaymentHash(t *testing.T) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
t.Fatalf("unexpected shutdown")
|
t.Fatalf("unexpected shutdown")
|
||||||
}
|
}
|
||||||
case <-time.After(5 * time.Second):
|
case <-time.After(10 * time.Second):
|
||||||
t.Fatalf("no result arrive")
|
t.Fatalf("no result arrive")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1412,7 +1412,7 @@ func timeout(t *testing.T) func() {
|
|||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
select {
|
select {
|
||||||
case <-time.After(10 * time.Second):
|
case <-time.After(20 * time.Second):
|
||||||
pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
|
pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
|
||||||
|
|
||||||
panic("test timeout")
|
panic("test timeout")
|
||||||
|
Loading…
Reference in New Issue
Block a user