From aabcf83c5fba63016957d275411b8518af2ffea1 Mon Sep 17 00:00:00 2001 From: codex Date: Tue, 21 Apr 2026 17:03:55 -0300 Subject: [PATCH] test(ananke): stabilize cooldown lifecycle assertions --- testing/orchestrator/hooks_lifecycle_deep_matrix_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/orchestrator/hooks_lifecycle_deep_matrix_test.go b/testing/orchestrator/hooks_lifecycle_deep_matrix_test.go index 34aa390..4667c7e 100644 --- a/testing/orchestrator/hooks_lifecycle_deep_matrix_test.go +++ b/testing/orchestrator/hooks_lifecycle_deep_matrix_test.go @@ -126,7 +126,7 @@ func TestLifecycleDeepFailureMatrix(t *testing.T) { t.Run("startup-cooldown-reread-intent-error", func(t *testing.T) { cfg := lifecycleFastConfig(t) cfg.Startup.RequireNodeInventoryReach = false - cfg.Startup.ShutdownCooldownSeconds = 1 + cfg.Startup.ShutdownCooldownSeconds = 5 if err := state.WriteIntent(cfg.State.IntentPath, state.Intent{ State: state.IntentShutdownComplete, Reason: "recent", @@ -136,7 +136,7 @@ func TestLifecycleDeepFailureMatrix(t *testing.T) { t.Fatalf("seed cooldown intent: %v", err) } go func(intentPath string) { - time.Sleep(150 * time.Millisecond) + time.Sleep(2 * time.Second) _ = os.Remove(intentPath) _ = os.Mkdir(intentPath, 0o755) }(cfg.State.IntentPath) @@ -150,7 +150,7 @@ func TestLifecycleDeepFailureMatrix(t *testing.T) { t.Run("startup-cooldown-shutdown-became-active", func(t *testing.T) { cfg := lifecycleFastConfig(t) cfg.Startup.RequireNodeInventoryReach = false - cfg.Startup.ShutdownCooldownSeconds = 1 + cfg.Startup.ShutdownCooldownSeconds = 5 if err := state.WriteIntent(cfg.State.IntentPath, state.Intent{ State: state.IntentShutdownComplete, Reason: "recent", @@ -160,7 +160,7 @@ func TestLifecycleDeepFailureMatrix(t *testing.T) { t.Fatalf("seed cooldown intent: %v", err) } go func(intentPath string) { - time.Sleep(150 * time.Millisecond) + time.Sleep(2 * time.Second) _ = state.WriteIntent(intentPath, state.Intent{ State: state.IntentShuttingDown, Reason: "peer-shutdown",