From c89f0dc7c1d68078245475837f33969b262e593d Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Sat, 14 Dec 2019 10:37:23 +0100 Subject: [PATCH] invoices/test: lower test delay Previously 5 seconds was used, which made the otherwise fast registry tests relatively slow. --- invoices/invoiceregistry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoices/invoiceregistry_test.go b/invoices/invoiceregistry_test.go index 2750e942..0d20b94b 100644 --- a/invoices/invoiceregistry_test.go +++ b/invoices/invoiceregistry_test.go @@ -770,7 +770,7 @@ func TestInvoiceExpiryWithRegistry(t *testing.T) { testClock.SetTime(testTime.Add(24 * time.Hour)) // Give some time to the watcher to cancel everything. - time.Sleep(testTimeout) + time.Sleep(500 * time.Millisecond) registry.Stop() // Create the expected cancellation set before the final check.