mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
improve unit testing case for package gcron
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user