Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava committed Oct 12, 2023
1 parent d09478f commit 24e59d6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 24e59d6

Please sign in to comment.