mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
fix reverse order bug in test
This commit is contained in:
parent
e384db16e2
commit
1c8f2aa74f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue