From 770619c39e37c4cd3c7819b6722dd5e6fbf1c6d9 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 8 Mar 2019 18:27:11 +0800 Subject: [PATCH] update unit test cases og gcron --- g/os/gcron/gcron_unit_1_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/g/os/gcron/gcron_unit_1_test.go b/g/os/gcron/gcron_unit_1_test.go index 01072f05f..ff86385b5 100644 --- a/g/os/gcron/gcron_unit_1_test.go +++ b/g/os/gcron/gcron_unit_1_test.go @@ -39,14 +39,14 @@ func TestCron_Add_Close(t *testing.T) { gtest.AssertNE(err3, nil) gtest.Assert(err4, nil) gtest.Assert(cron.Size(), 3) - time.Sleep(1100*time.Millisecond) + time.Sleep(1200*time.Millisecond) gtest.Assert(array.Len(), 2) - time.Sleep(1100*time.Millisecond) + time.Sleep(1200*time.Millisecond) gtest.Assert(array.Len(), 5) cron.Close() - time.Sleep(1100*time.Millisecond) + time.Sleep(1200*time.Millisecond) fixedLength := array.Len() - time.Sleep(1100*time.Millisecond) + time.Sleep(1200*time.Millisecond) gtest.Assert(array.Len(), fixedLength) }) }