From 021cedb2454bd84998d904e7444250b0ff4151f6 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Mon, 19 Feb 2024 16:58:26 +0100 Subject: [PATCH] Fix availableComponents unit test The result of the slice compaction wasn't used. The test wasn't effective before. Signed-off-by: Tom Wieczorek (cherry picked from commit ed61efd9327b02fae33a279bd6c2a7bc783d3280) --- pkg/config/cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/cli_test.go b/pkg/config/cli_test.go index 4d9e2c4eba3a..0a89e6046fa9 100644 --- a/pkg/config/cli_test.go +++ b/pkg/config/cli_test.go @@ -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") }