Skip to content

Commit

Permalink
CARRY: Remove check for restarted pod from test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ChughShilpa authored and openshift-merge-bot[bot] committed Sep 4, 2024
1 parent 7e3ed90 commit 6705d19
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/util/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ func WaitForKueueAvailability(ctx context.Context, k8sClient client.Client) {
gomega.EventuallyWithOffset(1, func(g gomega.Gomega) error {
g.Expect(k8sClient.Get(ctx, kcmKey, deployment)).To(gomega.Succeed())
g.Expect(k8sClient.List(ctx, &pods, client.InNamespace(GetNamespace()), client.MatchingLabels(deployment.Spec.Selector.MatchLabels))).To(gomega.Succeed())
for _, pod := range pods.Items {
for _, cs := range pod.Status.ContainerStatuses {
if cs.RestartCount > 0 {
return gomega.StopTrying(fmt.Sprintf("%q in %q has restarted %d times", cs.Name, pod.Name, cs.RestartCount))
}
}
}
g.Expect(deployment.Status.Conditions).To(gomega.ContainElement(gomega.BeComparableTo(
appsv1.DeploymentCondition{
Type: appsv1.DeploymentAvailable,
Expand Down

0 comments on commit 6705d19

Please sign in to comment.