You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/11/12 22:23:48 UTC
[10/12] couchdb commit: updated refs/heads/2876-js-tests to def9465
since in replication
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/06b32007
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/06b32007
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/06b32007
Branch: refs/heads/2876-js-tests
Commit: 06b32007b9d7416039b612f34159605a81089cef
Parents: 1f3d6cb
Author: sebastianro <se...@apache.org>
Authored: Tue Nov 10 21:59:30 2015 +0100
Committer: sebastianro <se...@apache.org>
Committed: Thu Nov 12 21:56:05 2015 +0100
----------------------------------------------------------------------
test/javascript/tests/replication.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/06b32007/test/javascript/tests/replication.js
----------------------------------------------------------------------
diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js
index 0e80035..ec8825e 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);