mirror of
https://github.com/matrix-org/dendrite
synced 2024-11-11 20:31:08 +01:00
Test_Devices, sqlite may return devices in different order, test should still pass (#2406)
This commit is contained in:
parent
987d7adc5d
commit
bfa344e831
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue