You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test `AssertEtcdMembershipMatchesOmniResources` we compare existing etcd members with ClusterMachines with retry, however we weren't refreshing etcd member list after the first fetch and this lead to test failure if the member list info was constructed incorrectly.
Signed-off-by: Oguz Kilcan <[email protected]>
returnretry.ExpectedErrorf("the count of members doesn't match the count of machines, expected %d, got: %d, members list: %s", len(clusterMachines), len(m.Members), memberIDs)
335
+
t.Logf("the count of members doesn't match the count of machines, expected %d, got: %d, members list: %s", len(clusterMachines), len(m.Members), memberIDs)
336
+
return
339
337
}
340
338
341
339
for_, member:=rangem.Members {
342
340
_, ok:=clusterMachines[member.Hostname]
343
341
344
-
if!ok {
345
-
returnretry.ExpectedErrorf("found etcd member which doesn't have associated machine status")
342
+
if!assert.True(collect, ok) {
343
+
t.Logf("found etcd member which doesn't have associated machine status")
0 commit comments