diff --git a/tools/go.mod b/tools/go.mod index c25470c..65e8ba7 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,7 @@ module tools -go 1.22.1 +go 1.23.0 + toolchain go1.23.6 require ( diff --git a/utilx/defaults_test.go b/utilx/defaults_test.go index 4e930e2..dd4820d 100644 --- a/utilx/defaults_test.go +++ b/utilx/defaults_test.go @@ -1,24 +1,13 @@ package utilx import ( - "testing" "time" - "bou.ke/monkey" . "gopkg.in/check.v1" ) // Hook up gocheck into the "go test" runner. -func Test(t *testing.T) { - monkey.Patch(time.Now, func() time.Time { - t, _ := time.Parse("2006-01-02 15:04:05", "2020-06-10 12:00:00") - return t - }) - - TestingT(t) -} - type DefaultsSuite struct{} var _ = Suite(&DefaultsSuite{})