go/timingwheel/timingwheel_test.go

18 lines
216 B
Go

package timingwheel
import (
"testing"
"time"
)
func TestTimingWheel(t *testing.T) {
w := NewTimingWheel(100*time.Millisecond, 10)
for {
select {
case <-w.After(200 * time.Millisecond):
return
}
}
}