fix: improve metrics collection loop
by adding the context from main and make auth.GetAdminContext accepting a context we are now able to stop the metrics collection loop once the context is canceled Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
parent
1d8d9459eb
commit
97f172eb51
8 changed files with 56 additions and 50 deletions
|
|
@ -60,7 +60,7 @@ type EnterpriseTestSuite struct {
|
|||
}
|
||||
|
||||
func (s *EnterpriseTestSuite) SetupTest() {
|
||||
adminCtx := auth.GetAdminContext()
|
||||
adminCtx := auth.GetAdminContext(nil)
|
||||
|
||||
// create testing sqlite database
|
||||
dbCfg := garmTesting.GetTestSqliteDBConfig(s.T())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue