Skip to content

Commit

Permalink
add lint exception
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Jan 2, 2025
1 parent 70922d8 commit fdb151c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/factsengine/gatherers/corosynccmapctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (suite *CorosyncCmapctlTestSuite) SetupTest() {
suite.mockExecutor = new(utilsMocks.CommandExecutor)
}

// nolint:dupl # it's ok to have similar tests for different gatherers
func (suite *CorosyncCmapctlTestSuite) TestCorosyncCmapctlGathererNoArgumentProvided() {
mockOutputFile, _ := os.Open(helpers.GetFixturePath("gatherers/corosynccmap-ctl.output"))
mockOutput, _ := io.ReadAll(mockOutputFile)
Expand Down
1 change: 1 addition & 0 deletions internal/factsengine/gatherers/sysctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (suite *SysctlTestSuite) SetupTest() {
suite.mockExecutor = new(utilsMocks.CommandExecutor)
}

// nolint:dupl # it's ok to have similar tests for different gatherers
func (suite *SysctlTestSuite) TestSysctlGathererNoArgumentProvided() {
mockOutputFile, _ := os.Open(helpers.GetFixturePath("gatherers/sysctl.output"))
mockOutput, _ := io.ReadAll(mockOutputFile)
Expand Down

0 comments on commit fdb151c

Please sign in to comment.