Skip to content

Commit

Permalink
(#4575) - Fix tests against CouchDB master
Browse files Browse the repository at this point in the history
Skip assertions around last_seq. These don't hold
in CouchDB 2.0 where the sequence is non-numerical.
  • Loading branch information
willholley authored and daleharvey committed Jun 2, 2016
1 parent fb77927 commit 3485f34
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/test.replication.js
Expand Up @@ -2498,7 +2498,9 @@ adapters.forEach(function (adapters) {

err.result.ok.should.equal(false);
err.result.docs_written.should.equal(9);
err.result.last_seq.should.equal(0);
if (!testUtils.isCouchMaster()) {
err.result.last_seq.should.equal(0);
}

var docs = [
[ 'doc_0', true ],
Expand Down Expand Up @@ -2545,7 +2547,9 @@ adapters.forEach(function (adapters) {
db.replicate.from(remote).then(function (result) {
should.exist(result);
result.docs_written.should.equal(1);
result.last_seq.should.equal(10);
if (!testUtils.isCouchMaster()) {
result.last_seq.should.equal(10);
}

var docs = [ 'doc_0', 'doc_1', 'doc_2', 'doc_3', 'doc_4', 'doc_5', 'doc_6', 'doc_7', 'doc_8', 'doc_9' ];

Expand Down

0 comments on commit 3485f34

Please sign in to comment.