chore: fmt modify
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user