Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit aaa5722

Browse files
committed
Fix test case 'Updating ClusterVersion'
Signed-off-by: Bingtan Lu <[email protected]>
1 parent 6053e25 commit aaa5722

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

virtualcluster/pkg/controller/controllers/virtualcluster_controller_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ var _ = Describe("VirtualCluster Controller", func() {
179179
}, time.Minute*5, interval).Should(BeTrue())
180180

181181
By("Updating ClusterVersion")
182+
Expect(cli.Get(ctx, client.ObjectKeyFromObject(cvInstance), cvInstance)).Should(Succeed())
182183
cvInstance.Spec.APIServer.StatefulSet.Spec.Template.Spec.Containers[0].Args = append([]string{"-v=7"}, cvInstance.Spec.APIServer.StatefulSet.Spec.Template.Spec.Containers[0].Args...)
183184
if cvInstance.Spec.APIServer.Service.Labels == nil {
184185
cvInstance.Spec.APIServer.Service.Labels = map[string]string{}

0 commit comments

Comments
 (0)