Skip to content

Commit

Permalink
[Bug] kubectl plugin e2e test is flaky
Browse files Browse the repository at this point in the history
Closes: ray-project#3140
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness committed Mar 3, 2025
1 parent 7c6aedf commit eca6bbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubectl-plugin/test/e2e/kubectl_ray_session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eca6bbf

Please sign in to comment.