Skip to content

Commit

Permalink
Simplify test with ElementsMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmoisey committed Jun 14, 2024
1 parent 306e735 commit 9c0941f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,5 @@ func TestFilterVPAs(t *testing.T) {
t.Fatalf("expected %d VPAs, got %d", len(expectedResult), len(result))
}

for i, vpa := range result {
if vpa != expectedResult[i] {
t.Errorf("expected VPA %v at index %d, got %v", expectedResult[i], i, vpa)
}
}
assert.ElementsMatch(t, expectedResult, result)
}

0 comments on commit 9c0941f

Please sign in to comment.