Skip to content

Commit

Permalink
Blank unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-fisher-datadog committed Mar 4, 2025
1 parent 24bb751 commit cc9bc18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/remoteconfig/state/agent_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func TestMergeRCConfigWithEmptyData(t *testing.T) {
emptyUpdateStatus := func(cfgPath string, status ApplyStatus) {}
emptyUpdateStatus := func(_ string, _ ApplyStatus) {}

content, err := MergeRCAgentConfig(emptyUpdateStatus, make(map[string]RawConfig))
assert.NoError(t, err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/remoteconfig/state/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestUpdateFlushCache(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 0, len(state.Configs))
assert.Equal(t, 0, len(state.CachedFiles))
assert.EqualValues(t, 1, state.TargetsVersion)
assert.EqualValues(t, 1, state.TargetsVersion) // We do not go backwards for the targets.
assert.EqualValues(t, 1, state.RootsVersion)

// Do the same with the unverified repository, there should be no functional difference
Expand All @@ -149,7 +149,7 @@ func TestUpdateFlushCache(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 0, len(state.Configs))
assert.Equal(t, 0, len(state.CachedFiles))
assert.EqualValues(t, 1, state.TargetsVersion)
assert.EqualValues(t, 1, state.TargetsVersion) // We do not go backwards for the targets.
assert.EqualValues(t, 1, state.RootsVersion)
}

Expand Down

0 comments on commit cc9bc18

Please sign in to comment.