update unit test cases og gcron
@@ -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)
})
}
