From 8c80e4bacb97d94a615ee77f6e9a35a815d192da Mon Sep 17 00:00:00 2001 From: "Mads R. Havmand" Date: Sun, 19 May 2024 13:42:53 +0200 Subject: [PATCH] tests: gave test a 20 second timeout for edgecases --- internal/configProvider/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/configProvider/config_test.go b/internal/configProvider/config_test.go index 248451b..ea9ecb4 100644 --- a/internal/configProvider/config_test.go +++ b/internal/configProvider/config_test.go @@ -349,7 +349,7 @@ func TestConfigProviderGet(t *testing.T) { // Ensure that the config has been updated - Allow for one failure to account // for potentially slow CI runners. if !assert.Equal(t, newPasswordString, cfg.Database.Password) { - time.Sleep(900 * time.Millisecond) + time.Sleep(1900 * time.Millisecond) require.Equal(t, newPasswordString, cfg.Database.Password) } // Ensure that the other values have not changed