diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-08-10 14:56:36 -0300 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-08-12 17:17:19 -0300 |
commit | 127b26507f0a8cd2fb0fc0b3d7fef71fa52d200b (patch) | |
tree | 63cab6b210ab2ffee7bddb9b90e3c8f804fd67dc /common | |
parent | 12d02d37c4a62f04ce9c2bf695ba696bd01f1626 (diff) |
[bug] Using lambda to avoid mistake on arguments
As suggested by drebs, the callback chaining can put None to sync,
bringing undesired behavior.
Diffstat (limited to 'common')
-rw-r--r-- | common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py b/common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py index be36ddee..c488822e 100644 --- a/common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py +++ b/common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py @@ -371,7 +371,7 @@ class CouchAtomicityTestCase(CouchDBTestCase, TestCaseWithServer): for i in xrange(0, REPEAT_TIMES): d = sol.create_doc({}) d.addCallback(lambda doc: docs.append(doc.doc_id)) - d.addCallback(sol.sync) + d.addCallback(lambda _: sol.sync()) deferreds.append(d) yield defer.gatherResults(deferreds, consumeErrors=True) |