From e222d92fb5dc78f9c846fd1a49a364dba679635f Mon Sep 17 00:00:00 2001 From: jflyfox Date: Fri, 22 Jan 2021 15:19:11 +0800 Subject: [PATCH] improve unit testing case for package gcron --- os/gcron/gcron_unit_1_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/gcron/gcron_unit_1_test.go b/os/gcron/gcron_unit_1_test.go index 4e408e2a3..5cb253c11 100644 --- a/os/gcron/gcron_unit_1_test.go +++ b/os/gcron/gcron_unit_1_test.go @@ -41,7 +41,7 @@ func TestCron_Add_Close(t *testing.T) { t.Assert(cron.Size(), 3) time.Sleep(1200 * time.Millisecond) t.Assert(array.Len(), 2) - time.Sleep(1200 * time.Millisecond) + time.Sleep(1400 * time.Millisecond) t.Assert(array.Len(), 5) cron.Close() time.Sleep(1200 * time.Millisecond)