From 377a1122c1691489a26668f05b313af8caa61930 Mon Sep 17 00:00:00 2001 From: Lee E Hinman <57081003+leehinman@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:37:54 -0500 Subject: [PATCH] adjust timeouts so tests have better chance of succeeding (#3549) * adjust timeouts so tests have better chance of succeeding (cherry picked from commit dcf2263201afa17a509cf6b7fcef53bf2f879be3) --- .../pkg/agent/application/coordinator/coordinator_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/pkg/agent/application/coordinator/coordinator_test.go b/internal/pkg/agent/application/coordinator/coordinator_test.go index af51ed63523..e84b43f182c 100644 --- a/internal/pkg/agent/application/coordinator/coordinator_test.go +++ b/internal/pkg/agent/application/coordinator/coordinator_test.go @@ -325,7 +325,7 @@ func TestCoordinatorShutdownTimeout(t *testing.T) { } func TestCoordinatorShutdownErrorOneResponse(t *testing.T) { - CoordinatorShutdownTimeout = time.Millisecond + CoordinatorShutdownTimeout = 10 * time.Millisecond handlerChan, _, _, config := setupAndWaitCoordinatorDone() cfgErrStr := "config watcher error" @@ -335,7 +335,7 @@ func TestCoordinatorShutdownErrorOneResponse(t *testing.T) { } func TestCoordinatorShutdownErrorAllResponses(t *testing.T) { - CoordinatorShutdownTimeout = time.Millisecond + CoordinatorShutdownTimeout = 5 * time.Second handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone() runtimeErrStr := "runtime error" varsErrStr := "vars error" @@ -350,7 +350,7 @@ func TestCoordinatorShutdownErrorAllResponses(t *testing.T) { } func TestCoordinatorShutdownAllResponsesNoErrors(t *testing.T) { - CoordinatorShutdownTimeout = time.Millisecond + CoordinatorShutdownTimeout = 5 * time.Second handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone() runtime <- nil varWatcher <- nil