Skip to content

Commit c9439f8

Browse files
committed
fix
1 parent d9e44b7 commit c9439f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

exp/runtime/internal/controllers/extensionconfig_controller_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ func TestExtensionReconciler_Reconcile(t *testing.T) {
128128
g.Eventually(func(g Gomega) {
129129
updatedConfig := &runtimev1.ExtensionConfig{}
130130
g.Expect(env.GetAPIReader().Get(ctx, util.ObjectKey(extensionConfig), updatedConfig)).To(Succeed())
131-
v1beta2Conditions := updatedConfig.GetV1Beta2Conditions()
132-
g.Expect(len(v1beta2Conditions)).To(BeNumerically(">=", 2))
131+
if updatedConfig.Status.V1Beta2 != nil {
132+
g.Expect(len(updatedConfig.Status.V1Beta2.Conditions)).To(BeNumerically(">=", 2))
133+
}
133134
}).WithTimeout(10 * time.Second).WithPolling(100 * time.Millisecond).Should(Succeed())
134135

135136
config := &runtimev1.ExtensionConfig{}

0 commit comments

Comments
 (0)