Commit 81dd7c3c authored by 张振华's avatar 张振华

update ut code

parent fe95f521
......@@ -24,6 +24,7 @@ func TestTicker(t *testing.T) {
end := time.Now().Unix()
fmt.Println("timeoutInfo2:", ti2.String())
time.Sleep(time.Second * 3)
ticker.Stop()
assert.True(t, end-now >= 2)
fmt.Println("TestTicker ok", end-now)
......
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