summary refs log tree commit diff
path: root/tests/logging/test_terse_json.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-10-21 06:59:54 -0400
committerGitHub <noreply@github.com>2020-10-21 06:59:54 -0400
commit20a67aa70da0e8ac49c724cdbc144004b03e5a74 (patch)
treef3cc51169eeff8666884e33de1945d42aaa1fd05 /tests/logging/test_terse_json.py
parentPin mypy-zope for compatibility with mypy. (#8600) (diff)
downloadsynapse-20a67aa70da0e8ac49c724cdbc144004b03e5a74.tar.xz
Separate the TCP and terse JSON formatting code. (#8587)
This should (theoretically) allow for using the TCP code with a different output type
and make it easier to use the JSON code with files / console.
Diffstat (limited to 'tests/logging/test_terse_json.py')
-rw-r--r--tests/logging/test_terse_json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/logging/test_terse_json.py b/tests/logging/test_terse_json.py
index 4cf81f7128..fd128b88e0 100644
--- a/tests/logging/test_terse_json.py
+++ b/tests/logging/test_terse_json.py
@@ -78,7 +78,7 @@ class TerseJSONTCPTestCase(StructuredLoggingTestBase, HomeserverTestCase):
             "server_name",
             "name",
         ]
-        self.assertEqual(set(log.keys()), set(expected_log_keys))
+        self.assertCountEqual(log.keys(), expected_log_keys)
 
         # It contains the data we expect.
         self.assertEqual(log["name"], "wally")