chore: fmt modify

This commit is contained in:
guoguangwu
2023-06-08 12:08:48 +08:00
parent 27ae25ec12
commit e71815cf03
5 changed files with 8 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ func TestTask_Run(t *testing.T) {
task := func(ctx context.Context) error {
cnt++
fmt.Printf("Hello, world! %d \n", cnt)
return errors.New(fmt.Sprintf("Hello, world! %d", cnt))
return fmt.Errorf("Hello, world! %d", cnt)
}
tk := NewTask("taska", "0/30 * * * * *", task)
for i := 0; i < 200; i++ {