9d7c2e1e54
2.删除hunter包引用和使用
17 lines
231 B
Go
17 lines
231 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestTimeAdd(t *testing.T) {
|
|
finishpoint := time.Now()
|
|
time.Sleep(time.Second * 2)
|
|
t.Error(time.Now().Sub(finishpoint) > time.Second*1)
|
|
}
|
|
|
|
func TestMain(t *testing.T) {
|
|
main()
|
|
}
|