Skip to content

Commit

Permalink
batch_test:fix make check error
Browse files Browse the repository at this point in the history
  • Loading branch information
asddongmen committed Nov 7, 2021
1 parent 78153a8 commit b0c066b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/orchestrator/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ func TestGetBatchResponse(t *testing.T) {
for i := 0; i < 5; i++ {
for j := 0; j < patchSize; j++ {
time.Sleep(10 * time.Millisecond)
cli.Put(ctx, prefix+fmt.Sprintf("/key%d", j), "abc")
_, err := cli.Put(ctx, prefix+fmt.Sprintf("/key%d", j), "abc")
if err == nil || err.Error() == "etcdserver: request timed out" {
continue
}
}
}
}()
Expand Down

0 comments on commit b0c066b

Please sign in to comment.