fix: flaky test TestDeployment/container_crashes_on_startup_without_healthcheck

This commit is contained in:
Pasha Sviderski
2026-03-04 14:03:29 +10:00
parent e54871758b
commit 3c435434a8
+3 -2
View File
@@ -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,