From 3c435434a837ac17985e5ae95896a041efd29d40 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Wed, 4 Mar 2026 14:03:29 +1000 Subject: [PATCH] fix: flaky test TestDeployment/container_crashes_on_startup_without_healthcheck --- test/e2e/service_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/service_test.go b/test/e2e/service_test.go index 3723371e..99784efb 100644 --- a/test/e2e/service_test.go +++ b/test/e2e/service_test.go @@ -1414,7 +1414,7 @@ myapp.example.com { } }) - monitorPeriod := 1 * time.Second + monitorPeriod := 2 * time.Second spec := api.ServiceSpec{ Name: name, Mode: api.ServiceModeReplicated, @@ -1454,7 +1454,8 @@ myapp.example.com { } }) - monitorPeriod := 1 * time.Second + // 1 second is sometimes not enough for Docker to detect the crash and start restarting the container. + monitorPeriod := 2 * time.Second spec := api.ServiceSpec{ Name: name, Mode: api.ServiceModeReplicated,