Commit 489addd2 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

time: stop 1ns timer in test

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/8819046
parent 277047f5
......@@ -60,10 +60,11 @@ func TestAfterStress(t *testing.T) {
Sleep(Nanosecond)
}
}()
c := Tick(1)
ticker := NewTicker(1)
for i := 0; i < 100; i++ {
<-c
<-ticker.C
}
ticker.Stop()
atomic.StoreUint32(&stop, 1)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment