From 2a57f749672580591b07065adde334029ddfb460 Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 23 Jul 2016 17:11:14 +0200 Subject: [test] adapt couch tests to use new generation/transaction storage scheme --- testing/tests/couch/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/tests/couch/common.py b/testing/tests/couch/common.py index b08e1fa3..263ac94c 100644 --- a/testing/tests/couch/common.py +++ b/testing/tests/couch/common.py @@ -49,7 +49,6 @@ def copy_couch_database_for_test(test, db): elif 'u1db_rev' in doc: new_doc = { '_id': doc['_id'], - 'u1db_transactions': doc['u1db_transactions'], 'u1db_rev': doc['u1db_rev'] } attachments = [] @@ -65,6 +64,8 @@ def copy_couch_database_for_test(test, db): if (att is not None): new_couch_db.put_attachment(new_doc, att, filename=att_name) + elif doc_id.startswith('gen-'): + new_couch_db.save(doc) # cleanup connections to prevent file descriptor leaking return new_db -- cgit v1.2.3