1
0

yield deferred

This commit is contained in:
Andrew Morgan
2019-05-02 18:53:09 -07:00
parent 15d1802668
commit 131b9c00c6

View File

@@ -99,6 +99,9 @@ class FederationClientTests(HomeserverTestCase):
# Deferred is still without a result
self.assertNoResult(test_d)
# Ensure deferred resolves
yield test_d
# Send it the HTTP response
res_json = '{ "a": 1 }'.encode('ascii')
protocol.dataReceived(