mirror of
https://gitee.com/johng/gf
synced 2026-07-03 11:51:04 +08:00
adjust gtimer.Entry.Reset() Test Code.
This commit is contained in:
@ -76,6 +76,7 @@ func TestTimer_Start_Stop_Close(t *testing.T) {
|
||||
|
||||
func TestTimer_Reset(t *testing.T) {
|
||||
gtest.C(t, func(t *gtest.T) {
|
||||
timer := New()
|
||||
array := garray.New(true)
|
||||
glog.Printf("start time:%d", time.Now().Unix())
|
||||
singleton := timer.AddSingleton(2*time.Second, func() {
|
||||
|
||||
Reference in New Issue
Block a user