Test_Devices, sqlite may return devices in different order, test should still pass (#2406)

This commit is contained in:
Brian Meek 2022-04-29 15:23:11 -07:00 committed by GitHub
parent 987d7adc5d
commit bfa344e831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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