fix(test): TestConfigReloader, wait for trivy db download (#1543)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu
2023-07-06 14:17:49 +03:00
committed by GitHub
parent 0a04b2a4ed
commit 49e4d93f42
3 changed files with 25 additions and 6 deletions
+2
View File
@@ -300,6 +300,8 @@ func (c *Controller) LoadNewConfig(reloadCtx context.Context, config *config.Con
c.Config.Extensions = nil
}
c.InitCVEInfo()
c.StartBackgroundTasks(reloadCtx)
c.Log.Info().Interface("reloaded params", c.Config.Sanitize()).