fix issue for gmd5/gcrc32

This commit is contained in:
John
2019-06-22 23:06:44 +08:00
parent b118cd8f27
commit 4b9db0c794
3 changed files with 6 additions and 5 deletions

View File

@ -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"
)

View File

@ -13,6 +13,7 @@ import (
"io"
"os"
"github.com/gogf/gf/g/internal/errors"
"github.com/gogf/gf/g/util/gconv"
)

View File

@ -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)
})