From 003ccd9cc1bba8c26eb319293d820c6a0355cac1 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Fri, 10 Jan 2025 17:23:13 +0100 Subject: [PATCH] Remove inherently flaky test Signed-off-by: Rohit Nayak --- go/timer/randticker_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/go/timer/randticker_test.go b/go/timer/randticker_test.go index 59bcd1d89ea..7acdbf3156a 100644 --- a/go/timer/randticker_test.go +++ b/go/timer/randticker_test.go @@ -43,21 +43,3 @@ func TestTick(t *testing.T) { t.Error("Channel was not closed") } } - -func TestTickSkip(t *testing.T) { - tkr := NewRandTicker(10*time.Millisecond, 1*time.Millisecond) - time.Sleep(35 * time.Millisecond) - end := <-tkr.C - diff := time.Since(end) - if diff < 20*time.Millisecond { - t.Errorf("diff: %v, want >20ms", diff) - } - - // This tick should be up-to-date - end = <-tkr.C - diff = time.Since(end) - if diff > 1*time.Millisecond { - t.Errorf("diff: %v, want <1ms", diff) - } - tkr.Stop() -}