From b0c066b443916b0b177d035f533e4787b5cea458 Mon Sep 17 00:00:00 2001 From: asddongmen <414110582@qq.com> Date: Sun, 7 Nov 2021 09:46:22 +0800 Subject: [PATCH] batch_test:fix make check error --- pkg/orchestrator/batch_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/orchestrator/batch_test.go b/pkg/orchestrator/batch_test.go index beb88e70629..352b422128c 100644 --- a/pkg/orchestrator/batch_test.go +++ b/pkg/orchestrator/batch_test.go @@ -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 + } } } }()