Skip to content

Commit eea440b

Browse files
authored
update (#3901)
Signed-off-by: You-Cheng Lin <[email protected]>
1 parent a851490 commit eea440b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

ray-operator/test/e2e/raycluster_gcs_ft_test.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,8 @@ func TestRayClusterGCSFaultTolerance(t *testing.T) {
101101
expectedOutput := "3"
102102
ExecPodCmd(test, headPod, common.RayHeadContainer, []string{"python", "samples/test_detached_actor_2.py", rayNamespace, expectedOutput})
103103

104-
// Test 2: Delete the head Pod
105-
err = test.Client().Core().CoreV1().Pods(namespace.Name).Delete(test.Ctx(), headPod.Name, metav1.DeleteOptions{})
106-
g.Expect(err).NotTo(HaveOccurred())
107-
108-
PodUID := func(p *corev1.Pod) string { return string(p.UID) }
109-
g.Eventually(HeadPod(test, rayCluster), TestTimeoutMedium).
110-
ShouldNot(WithTransform(PodUID, Equal(string(headPod.UID)))) // Use UID to check if the new head pod is created.
111-
112-
g.Eventually(HeadPod(test, rayCluster), TestTimeoutMedium).
113-
Should(WithTransform(PodState, Equal("Running")))
114-
115-
headPod, err = GetHeadPod(test, rayCluster) // Replace the old head pod
104+
// Test 2: Delete the head Pod and wait for the new head pod to be created
105+
headPod, err = DeletePodAndWait(test, rayCluster, namespace, headPod)
116106
g.Expect(err).NotTo(HaveOccurred())
117107

118108
expectedOutput = "4"

0 commit comments

Comments
 (0)