From c880029c4be006b20daf11d69d181fc34f530500 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Tue, 4 Mar 2025 03:31:23 +0800 Subject: [PATCH] [Bug] kubectl plugin e2e test is flaky (#3147) Closes: ray-project/kuberay#3140 Signed-off-by: Chi-Sheng Liu --- kubectl-plugin/test/e2e/kubectl_ray_session_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kubectl-plugin/test/e2e/kubectl_ray_session_test.go b/kubectl-plugin/test/e2e/kubectl_ray_session_test.go index dc6a6ac4fc1..8418f374a0d 100644 --- a/kubectl-plugin/test/e2e/kubectl_ray_session_test.go +++ b/kubectl-plugin/test/e2e/kubectl_ray_session_test.go @@ -11,7 +11,7 @@ import ( . "github.com/onsi/gomega" ) -var _ = Describe("Calling ray plugin `session` command", func() { +var _ = Describe("Calling ray plugin `session` command", Ordered, func() { var namespace string BeforeEach(func() { @@ -98,7 +98,8 @@ var _ = Describe("Calling ray plugin `session` command", func() { if string(output) == oldPodName { return err } - return nil + cmd = exec.Command("kubectl", "get", "--namespace", namespace, "pod", newPodName) + return cmd.Run() }, 60*time.Second, 1*time.Second).ShouldNot(HaveOccurred()) // Wait for the new pod to be ready