diff --git a/internal/pkg/agent/application/coordinator/coordinator_test.go b/internal/pkg/agent/application/coordinator/coordinator_test.go index c03e168ba82..e84b43f182c 100644 --- a/internal/pkg/agent/application/coordinator/coordinator_test.go +++ b/internal/pkg/agent/application/coordinator/coordinator_test.go @@ -335,6 +335,7 @@ func TestCoordinatorShutdownErrorOneResponse(t *testing.T) { } func TestCoordinatorShutdownErrorAllResponses(t *testing.T) { + CoordinatorShutdownTimeout = 5 * time.Second handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone() runtimeErrStr := "runtime error" varsErrStr := "vars error" @@ -349,6 +350,7 @@ func TestCoordinatorShutdownErrorAllResponses(t *testing.T) { } func TestCoordinatorShutdownAllResponsesNoErrors(t *testing.T) { + CoordinatorShutdownTimeout = 5 * time.Second handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone() runtime <- nil varWatcher <- nil