From bbbfe7f4666f92ad01d11e2979de638028d73355 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 16 Jul 2021 21:32:53 -0400 Subject: [PATCH] Increase sleep to give enough time for the goroutine to end its task --- storage/storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage_test.go b/storage/storage_test.go index b973c085..b2cda4dc 100644 --- a/storage/storage_test.go +++ b/storage/storage_test.go @@ -85,5 +85,5 @@ func TestAutoSave(t *testing.T) { go autoSaveStore(ctx, provider, 3*time.Millisecond) time.Sleep(15 * time.Millisecond) cancelFunc() - time.Sleep(10 * time.Millisecond) + time.Sleep(50 * time.Millisecond) }