Skip to content

Commit

Permalink
test: fix collect test
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jun 27, 2024
1 parent a429276 commit 0399a69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,8 @@ func TestCollect(t *testing.T) {
}
seq := maps.Keys(args)

assert.Equal(t, []string{"foo", "bar", "baz"}, Collect(seq))
result := Collect(seq)
for k := range args {
assert.Contains(t, result, k)
}
}

0 comments on commit 0399a69

Please sign in to comment.