Skip to content

Commit

Permalink
Use assert.ElementsMatch so the order of elements don't influence the…
Browse files Browse the repository at this point in the history
… test

Signed-off-by: Lucas Thiesen <lucas.thiesen@zalando.de>
  • Loading branch information
lucastt committed Oct 18, 2023
1 parent 0354686 commit 23bc2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ func TestResourceConversion(tt *testing.T) {
clientCF.GetLastStackTemplate(),
)

assert.Equal(
assert.ElementsMatch(
t,
tags,
clientCF.GetLastStackTags(),
)

assert.Equal(
assert.ElementsMatch(
t,
params,
clientCF.GetLastStackParams(),
Expand Down

0 comments on commit 23bc2c5

Please sign in to comment.