mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
fix issue for gmd5/gcrc32
This commit is contained in:
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -13,6 +13,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/gogf/gf/g/internal/errors"
|
||||
"github.com/gogf/gf/g/util/gconv"
|
||||
)
|
||||
|
||||
|
||||
@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user