summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-05-06 20:29:23 +0100
committerSean Quah <seanq@element.io>2022-05-06 20:54:30 +0100
commit4e644eae8d69b2585f4b4f35d813824b0d4619d8 (patch)
tree48a4c720dc44a5260c8c6c50c35bb13cdf5efd3e /tests
parentAdd missing docstring for `expected_body` parameter (diff)
downloadsynapse-squah/add_endpoint_cancellation_flag.tar.xz
Improve assertion message when `await_result=False` is forgotten github/squah/add_endpoint_cancellation_flag squah/add_endpoint_cancellation_flag
Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/http/server/_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/http/server/_base.py b/tests/http/server/_base.py
index 02b20b2cc8..b9f1a381aa 100644
--- a/tests/http/server/_base.py
+++ b/tests/http/server/_base.py
@@ -60,7 +60,9 @@ class EndpointCancellationTestHelperMixin(unittest.TestCase):
 
         request = channel.request
         self.assertFalse(
-            channel.is_finished(), "Request finished before we could disconnect"
+            channel.is_finished(),
+            "Request finished before we could disconnect - "
+            "was `await_result=False` passed to `make_request`?",
         )
 
         # We're about to disconnect the request. This also disconnects the channel, so