Skip to content

Commit

Permalink
Correct the expected version in downgrade test case
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
  • Loading branch information
ahrtr authored and k8s-infra-cherrypick-robot committed Feb 12, 2025
1 parent 71cdab4 commit bfc38cf
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions tests/framework/e2e/downgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,10 @@ func DowngradeUpgradeMembersByID(t *testing.T, lg *zap.Logger, clus *EtcdProcess
lg.Info("Validating versions")
for _, memberID := range membersToChange {
member := clus.Procs[memberID]
if isDowngrade || len(membersToChange) == len(clus.Procs) {
ValidateVersion(t, clus.Cfg, member, version.Versions{
Cluster: targetVersion.String(),
Server: targetVersion.String(),
})
} else {
ValidateVersion(t, clus.Cfg, member, version.Versions{
Cluster: currentVersion.String(),
Server: targetVersion.String(),
})
}
ValidateVersion(t, clus.Cfg, member, version.Versions{
Cluster: targetVersion.String(),
Server: targetVersion.String(),
})
}
return nil
}
Expand Down

0 comments on commit bfc38cf

Please sign in to comment.