mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
Partially fix a test that wasn't actually setting a variable.
This still doesn't work for blocking reasons, but that's a TODO for later. (imported from commit 8a1ebb5d0d964be95c9f458c254ef5767526bb24)
This commit is contained in:
@@ -420,7 +420,10 @@ class GetUpdatesTest(AuthedTestCase):
|
|||||||
def callback(data):
|
def callback(data):
|
||||||
# We can't make asserts in this nested function, so save the data
|
# We can't make asserts in this nested function, so save the data
|
||||||
# and assert in the parent.
|
# and assert in the parent.
|
||||||
messages = data
|
#
|
||||||
|
# TODO: Find out how to make this blocking so assertEquals below
|
||||||
|
# runs after us.
|
||||||
|
messages.extend(data)
|
||||||
|
|
||||||
request = POSTRequestMock({"last": str(last_received), "first": "1"}, user, callback)
|
request = POSTRequestMock({"last": str(last_received), "first": "1"}, user, callback)
|
||||||
self.assertRaises(TornadoAsyncException, get_updates, request)
|
self.assertRaises(TornadoAsyncException, get_updates, request)
|
||||||
|
|||||||
Reference in New Issue
Block a user