From 24e59d699703fb876fbe65ea22c894e9bc698dd9 Mon Sep 17 00:00:00 2001 From: Iryna Shustava Date: Thu, 12 Oct 2023 09:00:17 -0600 Subject: [PATCH] fix linter --- .../controllers/explicitdestinations/controller_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/mesh/internal/controllers/explicitdestinations/controller_test.go b/internal/mesh/internal/controllers/explicitdestinations/controller_test.go index ac0588a678bf..c63c32f12848 100644 --- a/internal/mesh/internal/controllers/explicitdestinations/controller_test.go +++ b/internal/mesh/internal/controllers/explicitdestinations/controller_test.go @@ -368,11 +368,11 @@ func (suite *controllerTestSuite) TestReconcile_NoWorkload() { suite.client.RequireResourceNotFound(suite.T(), id) // Check that we're not tracking services for this workload anymore. - reqs, err := suite.ctl.mapper.MapService(nil, controller.Runtime{}, suite.destService1) + reqs, err := suite.ctl.mapper.MapService(context.TODO(), controller.Runtime{}, suite.destService1) require.NoError(suite.T(), err) require.Nil(suite.T(), reqs) - reqs, err = suite.ctl.mapper.MapService(nil, controller.Runtime{}, suite.destService2) + reqs, err = suite.ctl.mapper.MapService(context.TODO(), controller.Runtime{}, suite.destService2) require.NoError(suite.T(), err) require.Nil(suite.T(), reqs) } @@ -404,11 +404,11 @@ func (suite *controllerTestSuite) TestReconcile_NonMeshWorkload() { suite.client.RequireResourceNotFound(suite.T(), cdID) // Check that we're not tracking services for this workload anymore. - reqs, err := suite.ctl.mapper.MapService(nil, controller.Runtime{}, suite.destService1) + reqs, err := suite.ctl.mapper.MapService(context.TODO(), controller.Runtime{}, suite.destService1) require.NoError(suite.T(), err) require.Nil(suite.T(), reqs) - reqs, err = suite.ctl.mapper.MapService(nil, controller.Runtime{}, suite.destService2) + reqs, err = suite.ctl.mapper.MapService(context.TODO(), controller.Runtime{}, suite.destService2) require.NoError(suite.T(), err) require.Nil(suite.T(), reqs) }