Commit 20ee486
authored
fix: flaky test (#968)
`TestConvertToStructs` was occasionally failing because it was expecting `range` over a `map` to be a consistent order, but per [spec]:
> The iteration order over maps is not specified and is not guaranteed to be the same from one iteration to the next.
Uses `ElementsMatch` so the test passes even when the order of elements is different.
[spec]: https://go.dev/ref/spec#RangeClause1 parent 92fff50 commit 20ee486
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments