Skip to content

Commit

Permalink
soft-fail if len(hashkv)!=2
Browse files Browse the repository at this point in the history
  • Loading branch information
veshij committed Oct 27, 2022
1 parent 9f241b1 commit 494ba7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/e2e/ctl_v3_auth_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 494ba7d

Please sign in to comment.