From 522d97ff935c215b6b16af2e8f6e051aba860ee9 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 22:40:01 +0000 Subject: [PATCH] adjust timeouts so tests have better chance of succeeding (#3549) (#3561) * adjust timeouts so tests have better chance of succeeding (cherry picked from commit dcf2263201afa17a509cf6b7fcef53bf2f879be3) Co-authored-by: Lee E Hinman <57081003+leehinman@users.noreply.github.com> --- .../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