summaryrefslogtreecommitdiff
path: root/testing/tests
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-01-11 18:33:05 -0300
committerVictor Shyba <victor1984@riseup.net>2017-03-02 15:18:44 -0300
commit9a73db4ca31c86bb8c657360e891d55329d65283 (patch)
tree4cf8c0643129c6dad18f0dad7937a8844261ba43 /testing/tests
parent0b60027dacf331c103f764b7b1b5dee8b6123938 (diff)
[test] fix test_sync_target for error handling
It needs a defer.Deferred
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/sync/test_sync_target.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tests/sync/test_sync_target.py b/testing/tests/sync/test_sync_target.py
index 34702362..25136ba1 100644
--- a/testing/tests/sync/test_sync_target.py
+++ b/testing/tests/sync/test_sync_target.py
@@ -63,7 +63,8 @@ class TestSoledadParseReceivedDocResponse(unittest.TestCase):
"""
def parse(self, stream):
- parser = DocStreamReceiver(None, None, lambda *_: defer.succeed(42))
+ parser = DocStreamReceiver(None, defer.Deferred(),
+ lambda *_: defer.succeed(42))
parser.dataReceived(stream)
parser.finish()