diff --git a/g/crypto/gcrc32/gcrc32_test.go b/g/crypto/gcrc32/gcrc32_test.go index 753e1c034..6472a7a01 100644 --- a/g/crypto/gcrc32/gcrc32_test.go +++ b/g/crypto/gcrc32/gcrc32_test.go @@ -11,9 +11,8 @@ package gcrc32_test import ( "testing" - "github.com/gogf/gf/g/crypto/gmd5" - "github.com/gogf/gf/g/crypto/gcrc32" + "github.com/gogf/gf/g/crypto/gmd5" "github.com/gogf/gf/g/test/gtest" ) diff --git a/g/crypto/gmd5/gmd5.go b/g/crypto/gmd5/gmd5.go index 26888db0a..1a9a56ea3 100644 --- a/g/crypto/gmd5/gmd5.go +++ b/g/crypto/gmd5/gmd5.go @@ -13,6 +13,7 @@ import ( "io" "os" + "github.com/gogf/gf/g/internal/errors" "github.com/gogf/gf/g/util/gconv" ) diff --git a/g/os/gcron/gcron_unit_1_test.go b/g/os/gcron/gcron_unit_1_test.go index 59e3062ee..125fc2edc 100644 --- a/g/os/gcron/gcron_unit_1_test.go +++ b/g/os/gcron/gcron_unit_1_test.go @@ -7,11 +7,12 @@ package gcron_test import ( + "testing" + "time" + "github.com/gogf/gf/g/container/garray" "github.com/gogf/gf/g/os/gcron" "github.com/gogf/gf/g/test/gtest" - "testing" - "time" ) func TestCron_Add_Close(t *testing.T) { @@ -146,7 +147,7 @@ func TestCron_AddOnce2(t *testing.T) { array.Append(1) }) gtest.Assert(cron.Size(), 1) - time.Sleep(2500 * time.Millisecond) + time.Sleep(3000 * time.Millisecond) gtest.Assert(array.Len(), 1) gtest.Assert(cron.Size(), 0) })