This is an automated email from the ASF dual-hosted git repository.
payang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 8a0d449b [YUNIKORN-2160] Fix Pod state in UserGroupLimit e2e test
(#729)
8a0d449b is described below
commit 8a0d449b83badc563edfdb38456b645b7cb18c63
Author: Yu-Lin Chen <[email protected]>
AuthorDate: Sun Nov 19 09:56:25 2023 +0800
[YUNIKORN-2160] Fix Pod state in UserGroupLimit e2e test (#729)
Closes: #729
Signed-off-by: PoAn Yang <[email protected]>
---
test/e2e/user_group_limit/user_group_limit_test.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/e2e/user_group_limit/user_group_limit_test.go
b/test/e2e/user_group_limit/user_group_limit_test.go
index 98bd4442..8475cf9a 100644
--- a/test/e2e/user_group_limit/user_group_limit_test.go
+++ b/test/e2e/user_group_limit/user_group_limit_test.go
@@ -417,7 +417,9 @@ func deploySleepPod(usergroup *si.UserGroupInformation,
queuePath string, expect
gomega.Ω(err).NotTo(gomega.HaveOccurred())
} else {
ginkgo.By(fmt.Sprintf("The sleep pod %s can't be scheduled %s",
sleepPod.Name, reason))
- err = kClient.WaitForPodUnschedulable(sleepPod, 60*time.Second)
+ // Since Pending is the initial state of PodPhase, sleep for 5
seconds, then check whether the pod is still in Pending state.
+ time.Sleep(5 * time.Second)
+ err = kClient.WaitForPodPending(sleepPod.Namespace,
sleepPod.Name, 60*time.Second)
gomega.Ω(err).NotTo(gomega.HaveOccurred())
}
return sleepPod
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]