Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions microceph/ceph/control_removal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down