From 6287052bd083358a508a456d953a2a6f55657903 Mon Sep 17 00:00:00 2001 From: Guangming Wang Date: Mon, 16 Sep 2019 13:22:44 +0800 Subject: [PATCH] integration: fix bug in for loop, make it break properly --- clientv3/integration/cluster_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clientv3/integration/cluster_test.go b/clientv3/integration/cluster_test.go index a5cf5d51a..0961c55d7 100644 --- a/clientv3/integration/cluster_test.go +++ b/clientv3/integration/cluster_test.go @@ -276,8 +276,7 @@ func TestMemberPromote(t *testing.T) { select { case <-time.After(500 * time.Millisecond): case <-timeout: - t.Errorf("failed all attempts to promote learner member, last error: %v", err) - break + t.Fatalf("failed all attempts to promote learner member, last error: %v", err) } _, err = capi.MemberPromote(context.Background(), learnerID)