Skip to content

Commit

Permalink
Change string split to contains
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarams87 committed May 22, 2024
1 parent 9503bf3 commit 1eb63f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/suite/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ var _ = Describe("Upgrade testing", Label("nfr", "upgrade"), func() {

if lease.Spec.HolderIdentity != nil {
for _, podName := range podNames {
if podName == strings.Split(*lease.Spec.HolderIdentity, "_")[0] {
if strings.Contains(*lease.Spec.HolderIdentity, podName) {
return true, nil
}
}
Expand Down

0 comments on commit 1eb63f4

Please sign in to comment.