summaryrefslogtreecommitdiff
path: root/scripts/migration/0.8.2/tests
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-08-22 20:56:49 -0300
committerdrebs <drebs@leap.se>2016-08-23 18:48:27 -0300
commit8e87fecc4f9262ee290c0a148cdbfb214cc0417d (patch)
tree683ec5e13ea9d3ff5e168216861ad6d09acef921 /scripts/migration/0.8.2/tests
parent9b178bfc632ea9dbd584029af05bb688f801b0e3 (diff)
[test] avoid failing on interrupted couch schema migrations
Diffstat (limited to 'scripts/migration/0.8.2/tests')
-rw-r--r--scripts/migration/0.8.2/tests/conftest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/migration/0.8.2/tests/conftest.py b/scripts/migration/0.8.2/tests/conftest.py
index 8e49891c..61f6c7ee 100644
--- a/scripts/migration/0.8.2/tests/conftest.py
+++ b/scripts/migration/0.8.2/tests/conftest.py
@@ -33,6 +33,10 @@ initial_docs = [
{'_id': '_design/syncs'},
{'_id': '_design/transactions',
'views': {'log': {'map': transaction_map}}},
+ # add some data from previous interrupted migration
+ {'_id': '_local/sync_A', 'gen': 0, 'trans_id': '', 'replica_uid': 'A'},
+ {'_id': 'gen-0000000002',
+ 'gen': 2, 'trans_id': 'trans-2', 'doc_id': 'doc2'},
# the following should be removed if found in the dbs
{'_id': 'u1db_sync_log'},
{'_id': 'u1db_sync_state'},