1
0
mirror of https://github.com/siddontang/go.git synced 2025-04-26 13:48:56 +08:00
siddontang.golib/timingwheel/timingwheel_test.go
2014-04-15 16:37:22 +08:00

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
}
}
}