aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authorBrian Meek <brian@hntlabs.com>2022-04-29 15:23:11 -0700
committerGitHub <noreply@github.com>2022-04-30 00:23:11 +0200
commitbfa344e83191c49bdc9917ab7a8ec31b93c202e9 (patch)
tree50a09cb52119c845e0157e931bea32c7e155dff6 /userapi
parent987d7adc5d4e34827759b206ac4cc17cce78e221 (diff)
Test_Devices, sqlite may return devices in different order, test should still pass (#2406)
Diffstat (limited to 'userapi')
-rw-r--r--userapi/storage/storage_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/storage/storage_test.go b/userapi/storage/storage_test.go
index 2eb57d0b..ef25b800 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"