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