- 重构了一下misc中定时器相关的函数
This commit is contained in:
13
business/jxstore/misc/misc_test.go
Normal file
13
business/jxstore/misc/misc_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package misc
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestScheduleTimerFuncByInterval(t *testing.T) {
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
t.Log(time.Now())
|
||||
}, time.Second, 7*time.Second)
|
||||
time.Sleep(30 * time.Second)
|
||||
}
|
||||
Reference in New Issue
Block a user