Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit missing changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
JorTurFer committed May 31, 2023
1 parent 0dd6b91 commit 13bda8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/helper/helper.go
Original file line number Diff line number Diff line change
@@ -313,7 +313,9 @@ func WaitForJobCount(t *testing.T, kc *kubernetes.Clientset, namespace string,
func waitForJobCount(t *testing.T, kc *kubernetes.Clientset, selector, namespace string,
target, iterations, intervalSeconds int) bool {
for i := 0; i < iterations; i++ {
jobList, _ := kc.BatchV1().Jobs(namespace).List(context.Background(), metav1.ListOptions{})
jobList, _ := kc.BatchV1().Jobs(namespace).List(context.Background(), metav1.ListOptions{
LabelSelector: selector,
})
count := len(jobList.Items)

t.Logf("Waiting for job count to hit target. Namespace - %s, Current - %d, Target - %d",

0 comments on commit 13bda8e

Please sign in to comment.