Skip to content

Commit 1d52f48

Browse files
authored
🌱 Fix flaky test in extensionconfig_controller_test.go (#12386)
* fix: flaky test * Revert "fix: flaky test" This reverts commit 4c26299. * fix: flaky test * ci
1 parent 890d16f commit 1d52f48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exp/runtime/internal/controllers/extensionconfig_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestExtensionReconciler_Reconcile(t *testing.T) {
6969
g.Expect(runtimehooksv1.AddToCatalog(cat)).To(Succeed())
7070

7171
r := &Reconciler{
72-
Client: env.GetClient(),
72+
Client: env.GetAPIReader().(client.Client),
7373
APIReader: env.GetAPIReader(),
7474
RuntimeClient: runtimeClient,
7575
}
@@ -102,7 +102,7 @@ func TestExtensionReconciler_Reconcile(t *testing.T) {
102102
t.Run("successful reconcile and discovery on ExtensionConfig create", func(*testing.T) {
103103
// Warm up the registry before trying reconciliation again.
104104
warmup := &warmupRunnable{
105-
Client: env.GetClient(),
105+
Client: env.GetAPIReader().(client.Client),
106106
APIReader: env.GetAPIReader(),
107107
RuntimeClient: runtimeClient,
108108
}

0 commit comments

Comments
 (0)