Debian Codegraph @

timingwheel/timingwheel_test.go

raw symbols SCIP
1 package timingwheel
2
3 import (
4 "testing"
5 "time"
6 )
7
8 func TestTimingWheel(t *testing.T) {
9 w := NewTimingWheel(100*time.Millisecond, 10)
10
11 for {
12 select {
13 case <-w.After(200 * time.Millisecond):
14 return
15 }
16 }
17 }