From 3dc6287d0a533771a464aa0a029004a815b7b7fd Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Tue, 20 Sep 2022 11:54:51 -0700 Subject: [PATCH] check mc left status --- test/e2e/work_load_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/work_load_test.go b/test/e2e/work_load_test.go index 8b9c007a8..f28aee95e 100644 --- a/test/e2e/work_load_test.go +++ b/test/e2e/work_load_test.go @@ -182,8 +182,9 @@ var _ = Describe("workload orchestration testing", func() { By("mark the member cluster in the hub cluster as leave") testutils.UpdateMemberClusterState(*HubCluster, mc, v1alpha1.ClusterStateLeave) - By("verify that member cluster is marked as notReadyToJoin") + By("verify that member cluster is marked as leave") testutils.WaitConditionMemberCluster(*HubCluster, mc, v1alpha1.ConditionTypeMemberClusterReadyToJoin, v1.ConditionFalse, testutils.PollTimeout) + testutils.WaitConditionMemberCluster(*HubCluster, mc, v1alpha1.ConditionTypeMemberClusterJoined, v1.ConditionFalse, testutils.PollTimeout) By("verify that the resource is still on the member cluster") Consistently(func() error {