From 8bdebf18a796bc391715fc27831c01f32f073fbf Mon Sep 17 00:00:00 2001 From: Abraham Perez Date: Wed, 25 Nov 2026 22:37:43 -0600 Subject: [PATCH] test(ceph): stop the control daemon verify test racing its timeout TestVerifyControlDaemonAbsentReturnsOnceAbsent only reports the daemon absent on the third presence poll, but it ran inside the 30ms verification window shared with the timeout tests. On a loaded host the 5ms poll timers fire late, two waits overrun the window and the verify loop gives up after the second poll, failing the test. Give this test a 10s window. It does not exercise the timeout and the loop still returns on the third poll, so it stays fast, while the timeout tests keep the 30ms window. Assisted-by: claude-code:claude-opus-5-5 Signed-off-by: Abraham Perez --- microceph/ceph/control_removal_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/microceph/ceph/control_removal_test.go b/microceph/ceph/control_removal_test.go index 1a0505b91..12470dbd9 100644 --- a/microceph/ceph/control_removal_test.go +++ b/microceph/ceph/control_removal_test.go @@ -28,6 +28,11 @@ func shrinkDaemonRemovalVerify(t *testing.T) { func TestVerifyControlDaemonAbsentReturnsOnceAbsent(t *testing.T) { shrinkDaemonRemovalVerify(t) + // The daemon is only reported absent on the third poll. On a loaded host + // the 5ms poll timers can fire late enough that two waits overrun the 30ms + // window, so this test, which does not exercise the timeout, gets ample + // headroom. The loop still returns as soon as the third poll succeeds. + controlDaemonRemovalVerifyTimeout = 10 * time.Second calls := 0 presence := func(_ context.Context, _ string) (bool, error) { calls++