From 94923c628d8a6b8b1106da2a23abba87c53281dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 18 May 2024 11:57:24 +0200 Subject: [PATCH] Manager: increase wait time in worker timeout test Instead of waiting for 1ns, wait for 1ms. That's more stable on my laptop, and still short enough to not really slow down the test. --- internal/manager/persistence/workers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/manager/persistence/workers_test.go b/internal/manager/persistence/workers_test.go index 8bd6ab94..27f28f5a 100644 --- a/internal/manager/persistence/workers_test.go +++ b/internal/manager/persistence/workers_test.go @@ -408,7 +408,7 @@ func TestSummarizeWorkerStatusesTimeout(t *testing.T) { // Force a timeout of the context. And yes, even when a nanosecond is quite // short, it is still necessary to wait. - time.Sleep(2 * time.Nanosecond) + time.Sleep(1 * time.Millisecond) // Test the summary. summary, err := f.db.SummarizeWorkerStatuses(subCtx)