Skip to content

Commit 8c152ea

Browse files
committed
test(parameters): wait for legacy renderer cache sync
1 parent 16f7c12 commit 8c152ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

controllers/parameters/componentparameter_controller_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ var _ = Describe("ComponentParameter Controller", func() {
349349
},
350350
}
351351
Expect(testCtx.CreateObj(testCtx.Ctx, pcr)).Should(Succeed())
352+
Eventually(testapps.CheckObj(&testCtx, client.ObjectKeyFromObject(pcr), func(g Gomega, fetched *parametersv1alpha1.ParamConfigRenderer) {
353+
g.Expect(fetched.Finalizers).Should(ContainElement(constant.ConfigFinalizerName))
354+
})).Should(Succeed())
352355

353356
By("touch the component to regenerate ComponentParameter from mixed sources")
354357
Eventually(testapps.GetAndChangeObj(&testCtx, client.ObjectKeyFromObject(compObj), func(comp *appsv1.Component) {

0 commit comments

Comments
 (0)