From c84039771e9c2cee68952b4b7cc52cba1909784e Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Tue, 30 Sep 2025 16:44:31 +0300 Subject: [PATCH] adaptation: ensure sync'ed plugins are fully registered in tests. A plugin having received a sync request is not enough to ensure it has been fully registered on the runtime side (IOW appended to the list of active plugins). Use a sync block/unblock to ensure it has. Signed-off-by: Krisztian Litkey --- pkg/adaptation/suite_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/adaptation/suite_test.go b/pkg/adaptation/suite_test.go index 885113b9..88d8946e 100644 --- a/pkg/adaptation/suite_test.go +++ b/pkg/adaptation/suite_test.go @@ -125,6 +125,7 @@ func (s *Suite) WaitForPluginsToSync(plugins ...*mockPlugin) { for _, plugin := range plugins { Expect(plugin.Wait(PluginSynchronized, timeout)).To(Succeed()) } + s.runtime.runtime.BlockPluginSync().Unblock() // ensure plugins are fully registered } // Cleanup the test suite.