diff --git a/tests/storage/test_user_directory.py b/tests/storage/test_user_directory.py
index 0891308f25533e774896ad0402ebfdfe130a3392..88add45217331aac846cbbef7452c1fdb00a024a 100644
--- a/tests/storage/test_user_directory.py
+++ b/tests/storage/test_user_directory.py
@@ -62,7 +62,7 @@ class UserDirectoryStoreTestCase(unittest.TestCase):
         self.assertFalse(r["limited"])
         self.assertEqual(1, len(r["results"]))
         self.assertDictEqual(r["results"][0], {
-            "user_id": BOB,
+            "d.user_id": BOB,
             "display_name": "bob",
             "avatar_url": None,
         })