summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2023-03-21 13:23:47 +0000
committerGitHub <noreply@github.com>2023-03-21 13:23:47 +0000
commitb6aef593347924d39b4ff8b07e375eb656001545 (patch)
tree3f7642647b8e184b21067834bcb4a89abc5a34a6 /tests
parentDocument that our Docker images are mirrored to GHCR. (#15282) (diff)
downloadsynapse-b6aef593347924d39b4ff8b07e375eb656001545.tar.xz
Make `EventHandler.get_event` return `None` when the requested event is not found (#15298)
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/client/test_report_event.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rest/client/test_report_event.py b/tests/rest/client/test_report_event.py
index 1250685d39..1a8ab067a9 100644
--- a/tests/rest/client/test_report_event.py
+++ b/tests/rest/client/test_report_event.py
@@ -84,6 +84,11 @@ class ReportEventTestCase(unittest.HomeserverTestCase):
             access_token=self.other_user_tok,
         )
         self.assertEqual(404, channel.code, msg=channel.result["body"])
+        self.assertEqual(
+            "Unable to report event: it does not exist or you aren't able to see it.",
+            channel.json_body["error"],
+            msg=channel.result["body"],
+        )
 
     def _assert_status(self, response_status: int, data: JsonDict) -> None:
         channel = self.make_request(