mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
adding comments on test bahaviour
Signed-off-by: Asad Khan <asadullah.khan@deliveryhero.com>
This commit is contained in:
committed by
Ashutosh Narkar
parent
86721eaef9
commit
98031ac004
@@ -3308,15 +3308,19 @@ func TestPluginStateReconciliationOnReconfigure(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
// if there is a change in config
|
||||
// Reconfigure sets the plugin state as StateNotReady
|
||||
ensurePluginState(t, plugin, plugins.StateNotReady)
|
||||
|
||||
for name := range stage.cfg.Bundles {
|
||||
go func() {
|
||||
go func(name string) {
|
||||
_ = plugin.Loaders()[name].Trigger(ctx)
|
||||
}()
|
||||
}(name)
|
||||
<-statusCh
|
||||
}
|
||||
|
||||
// after all downloaders are processed the state should
|
||||
// reconcile to StateOK, if there are no errors
|
||||
ensurePluginState(t, plugin, plugins.StateOK)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user