summaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-08-10 14:56:36 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-12 17:17:19 -0300
commit127b26507f0a8cd2fb0fc0b3d7fef71fa52d200b (patch)
tree63cab6b210ab2ffee7bddb9b90e3c8f804fd67dc /common/src
parent12d02d37c4a62f04ce9c2bf695ba696bd01f1626 (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/src')
-rw-r--r--common/src/leap/soledad/common/tests/test_couch_operations_atomicity.py2
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)