We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8bbc6 commit ec29bdbCopy full SHA for ec29bdb
go/timer/randticker_test.go
@@ -43,21 +43,3 @@ func TestTick(t *testing.T) {
43
t.Error("Channel was not closed")
44
}
45
46
-
47
-func TestTickSkip(t *testing.T) {
48
- tkr := NewRandTicker(10*time.Millisecond, 1*time.Millisecond)
49
- time.Sleep(35 * time.Millisecond)
50
- end := <-tkr.C
51
- diff := time.Since(end)
52
- if diff < 20*time.Millisecond {
53
- t.Errorf("diff: %v, want >20ms", diff)
54
- }
55
56
- // This tick should be up-to-date
57
- end = <-tkr.C
58
- diff = time.Since(end)
59
- if diff > 1*time.Millisecond {
60
- t.Errorf("diff: %v, want <1ms", diff)
61
62
- tkr.Stop()
63
-}
0 commit comments