Skip to content

Commit

Permalink
Change 'gomega.BeComparableTo' to 'gomega.Equal'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Edwins committed May 20, 2024
1 parent 6bd209f commit 6a1ac21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/controller/jobset_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ func matchJobSetRestartsCountTowardsMax(js *jobset.JobSet, expectedCount int32)
}

return newJs.Status.RestartsCountTowardsMax, nil
}, timeout, interval).Should(gomega.BeComparableTo(expectedCount))
}, timeout, interval).Should(gomega.Equal(expectedCount))
}

func matchJobSetReplicatedStatus(js *jobset.JobSet, expectedStatus []jobset.ReplicatedJobStatus) {
Expand All @@ -2069,7 +2069,7 @@ func matchJobSetReplicatedStatus(js *jobset.JobSet, expectedStatus []jobset.Repl
}
sort.Slice(newJs.Status.ReplicatedJobsStatus, compareNames)
return newJs.Status.ReplicatedJobsStatus, nil
}, timeout, interval).Should(gomega.BeComparableTo(expectedStatus))
}, timeout, interval).Should(gomega.Equal(expectedStatus))
}

// 2 replicated jobs:
Expand Down

0 comments on commit 6a1ac21

Please sign in to comment.