summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2019-10-22 22:26:30 -0400
committerHubert Chathi <hubert@uhoreg.ca>2019-10-22 22:26:30 -0400
commit3e3f9b684e2853217d86349f289780b397afa88a (patch)
treee1509063d51e985be59f2b621569b29a3e5f2b26 /tests/storage
parentadd news file (diff)
downloadsynapse-3e3f9b684e2853217d86349f289780b397afa88a.tar.xz
fix unit test
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_devices.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storage/test_devices.py b/tests/storage/test_devices.py
index 3cc18f9f1c..039cc79357 100644
--- a/tests/storage/test_devices.py
+++ b/tests/storage/test_devices.py
@@ -137,7 +137,9 @@ class DeviceStoreTestCase(tests.unittest.TestCase):
         """Check that an specific device ids exist in a list of device update EDUs"""
         self.assertEqual(len(device_updates), len(expected_device_ids))
 
-        received_device_ids = {update["device_id"] for update in device_updates}
+        received_device_ids = {
+            update["device_id"] for edu_type, update in device_updates
+        }
         self.assertEqual(received_device_ids, set(expected_device_ids))
 
     @defer.inlineCallbacks