improve unit testing case for package gcron

This commit is contained in:
John Guo
2021-01-20 00:18:29 +08:00
parent 333e5b27aa
commit a304ca8f5b
2 changed files with 2 additions and 2 deletions

View File

@ -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(1500 * time.Millisecond)
t.Assert(array.Len(), 5)
cron.Close()
time.Sleep(1200 * time.Millisecond)

View File

@ -76,7 +76,7 @@ func SnakeScreamingCase(s string) string {
// CaseSnakeScreaming converts a string to SNAKE_CASE_SCREAMING.
func CaseSnakeScreaming(s string) string {
return DelimitedScreamingCase(s, '_', true)
return CaseDelimitedScreaming(s, '_', true)
}
// SnakeFirstUpperCase converts a string from RGBCodeMd5 to rgb_code_md5.