From bfa344e83191c49bdc9917ab7a8ec31b93c202e9 Mon Sep 17 00:00:00 2001 From: Brian Meek Date: Fri, 29 Apr 2022 15:23:11 -0700 Subject: [PATCH] Test_Devices, sqlite may return devices in different order, test should still pass (#2406) --- userapi/storage/storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userapi/storage/storage_test.go b/userapi/storage/storage_test.go index 2eb57d0bc..ef25b8000 100644 --- a/userapi/storage/storage_test.go +++ b/userapi/storage/storage_test.go @@ -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"