Test_Devices, sqlite may return devices in different order, test should still pass

This commit is contained in:
Brian Meek 2022-04-29 08:12:37 -07:00
parent 31799a3b2a
commit ae9904c735
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00

View file

@ -168,7 +168,7 @@ func Test_Devices(t *testing.T) {
devices2, err := db.GetDevicesByID(ctx, deviceIDs)
assert.NoError(t, err, "unable to get devices by id")
assert.Equal(t, devices, devices2)
assert.ElementsMatch(t, devices, devices2)
// Update device
newName := "new display name"