summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsebastianro <sebastianro@apache.org>2015-11-10 21:59:30 +0100
committerJan Lehnardt <jan@apache.org>2015-12-12 15:25:10 +0100
commit5a2e9bc61365d9e2583d4b4eef4bebe45f171756 (patch)
tree4f8e09cf982045b2649bd3dea0bb52ebdac29210
parent2e011d4eb3fa9d9661555c7ec6c2c23a6168defa (diff)
downloadcouchdb-5a2e9bc61365d9e2583d4b4eef4bebe45f171756.tar.gz
since in replication
-rw-r--r--test/javascript/tests/replication.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js
index 0e80035c2..ec8825e4d 100644
--- a/test/javascript/tests/replication.js
+++ b/test/javascript/tests/replication.js
@@ -543,12 +543,13 @@ couchTests.replication = function(debug) {
docs = makeDocs(1, 6);
for (i = 0; i < dbPairs.length; i++) {
- var since_seq = 3;
populateDb(sourceDb, docs);
populateDb(targetDb, []);
+ // sequences are no longer simple numbers - so pull #3 from a feed
+ var since_seq = sourceDb.changes().results[2].seq;
var expected_ids = [];
- var changes = sourceDb.changes({since: since_seq});
+ var changes = sourceDb.changes({since: JSON.stringify(since_seq)});
for (j = 0; j < changes.results.length; j++) {
expected_ids.push(changes.results[j].id);
}
@@ -566,7 +567,7 @@ couchTests.replication = function(debug) {
);
} catch (x) {
// OTP R14B03 onwards
- TEquals("not found", x.error);
+ TEquals("not_found", x.error);
}
repResult = CouchDB.replicate(
dbPairs[i].source,
@@ -584,7 +585,7 @@ couchTests.replication = function(debug) {
);
} catch (x) {
// OTP R14B03 onwards
- TEquals("not found", x.error);
+ TEquals("not_found", x.error);
}
TEquals(true, repResult.ok);
TEquals(2, repResult.history[0].missing_checked);