Skip to content

Commit c24b6e8

Browse files
committed
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 <[email protected]>
1 parent fec3a31 commit c24b6e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/adaptation/suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (s *Suite) WaitForPluginsToSync(plugins ...*mockPlugin) {
125125
for _, plugin := range plugins {
126126
Expect(plugin.Wait(PluginSynchronized, timeout)).To(Succeed())
127127
}
128+
s.runtime.runtime.BlockPluginSync().Unblock() // ensure plugins are fully registered
128129
}
129130

130131
// Cleanup the test suite.

0 commit comments

Comments
 (0)