mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-20 13:02:38 -05:00
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.
This commit is contained in:
parent
654cc9470e
commit
20a67aa70d
4 changed files with 240 additions and 187 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue