From 494ba7d259fef9869f4bf16fc5cbc001f1c333bf Mon Sep 17 00:00:00 2001 From: Oleg Guba Date: Thu, 27 Oct 2022 11:00:18 -0700 Subject: [PATCH] soft-fail if len(hashkv)!=2 --- tests/e2e/ctl_v3_auth_cluster_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/ctl_v3_auth_cluster_test.go b/tests/e2e/ctl_v3_auth_cluster_test.go index 60b2ce94b4fe..4abe1568bda3 100644 --- a/tests/e2e/ctl_v3_auth_cluster_test.go +++ b/tests/e2e/ctl_v3_auth_cluster_test.go @@ -71,8 +71,10 @@ func TestAuthCluster(t *testing.T) { t.Logf("failed to get HashKV: %v", err) return false } - - assert.Equal(t, 2, len(hashKvs)) + if len(hashKvs) != 2 { + t.Logf("not exactly 2 hashkv responses returned: %d", len(hashKvs)) + return false + } if hashKvs[0].Header.Revision != hashKvs[1].Header.Revision { t.Logf("The two members' revision (%d, %d) are not equal", hashKvs[0].Header.Revision, hashKvs[1].Header.Revision) return false