fix reverse order bug in test

This commit is contained in:
Hayden 2023-04-01 15:06:48 -08:00
parent e384db16e2
commit 1c8f2aa74f
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -169,8 +169,8 @@ func TestLocationRepository_PathForLoc(t *testing.T) {
// Check path and order
for i, loc := range path {
assert.Equal(t, locs[i].ID, loc.ID)
assert.Equal(t, locs[i].Name, loc.Name)
assert.Equal(t, locs[2-i].ID, loc.ID)
assert.Equal(t, locs[2-i].Name, loc.Name)
}
}