Skip to content

Commit

Permalink
Fix availableComponents unit test
Browse files Browse the repository at this point in the history
The result of the slice compaction wasn't used. The test wasn't
effective before.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit ed61efd)
  • Loading branch information
twz123 authored and github-actions[bot] committed Feb 20, 2024
1 parent 22f390a commit 021cedb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAvailableComponents_SortedAndUnique(t *testing.T) {

assert.Equal(t, expected, availableComponents, "Available components aren't sorted")

slices.Compact(expected)
expected = slices.Compact(expected)
assert.Equal(t, expected, availableComponents, "Available components contain duplicates")
}

Expand Down

0 comments on commit 021cedb

Please sign in to comment.