From 0a12592b39f3a2db3090da4f94899543fdae6b71 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 4 Dec 2020 10:50:19 +0100 Subject: [PATCH] htlcswitch/link_test: double timeouts Double the timeout to allow the htlcswitch tests to finish on slow systems (darwin...). --- htlcswitch/link_test.go | 2 +- htlcswitch/test_utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index eb24a100..166b5340 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -1140,7 +1140,7 @@ func TestChannelLinkMultiHopUnknownPaymentHash(t *testing.T) { if !ok { t.Fatalf("unexpected shutdown") } - case <-time.After(5 * time.Second): + case <-time.After(10 * time.Second): t.Fatalf("no result arrive") } diff --git a/htlcswitch/test_utils.go b/htlcswitch/test_utils.go index 37925ef9..6fc6b1dd 100644 --- a/htlcswitch/test_utils.go +++ b/htlcswitch/test_utils.go @@ -1412,7 +1412,7 @@ func timeout(t *testing.T) func() { done := make(chan struct{}) go func() { select { - case <-time.After(10 * time.Second): + case <-time.After(20 * time.Second): pprof.Lookup("goroutine").WriteTo(os.Stdout, 1) panic("test timeout")