diff options
author | drebs <drebs@leap.se> | 2013-05-01 10:31:26 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-05-01 10:31:26 -0300 |
commit | c2bd7c7b297f7aedbd77eae283487b4e0fb39a08 (patch) | |
tree | 18f43c76276344b479a92b3820046264f174ed37 | |
parent | 56262b4b4c82aeb9a0b0669eba4a993c88909e9c (diff) |
Fix sqlcipher test that was comparing wrong doc.
-rw-r--r-- | src/leap/soledad/tests/test_sqlcipher.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/tests/test_sqlcipher.py b/src/leap/soledad/tests/test_sqlcipher.py index 39a60a2f..b16b991d 100644 --- a/src/leap/soledad/tests/test_sqlcipher.py +++ b/src/leap/soledad/tests/test_sqlcipher.py @@ -562,11 +562,11 @@ class SQLCipherDatabaseSyncTests( self.sync(self.db1, self.db2) # make sure db2 now has the exact same thing doc1 = self.db1.get_doc('doc') - doc2 = self.db1.get_doc('doc') + doc2 = self.db2.get_doc('doc') if ENC_SCHEME_KEY in doc2.content: doc2.set_json( decrypt_doc_json( - self._soledad._crypto, doc2, doc2.get_json())) + self._soledad._crypto, doc2.doc_id, doc2.get_json())) self.assertEqual(doc1, doc2) def test_sync_autoresolves_moar_backwards(self): |