Skip to content

Commit 1fafe23

Browse files
committed
fix: handle 404 errors
1 parent 55c3407 commit 1fafe23

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/integration/test.get.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,13 @@ adapters.forEach(function (adapter) {
772772
}).then(function (result) {
773773
result._deleted.should.equal(true);
774774
result.version.should.equal('second');
775+
}).catch(function (err) {
776+
if (adapter === 'http') {
777+
err.status.should.equal(404);
778+
err.message.should.equal('deleted');
779+
return;
780+
}
781+
throw err;
775782
});
776783
});
777784
});
@@ -862,6 +869,10 @@ adapters.forEach(function (adapter) {
862869
latest: true
863870
});
864871
}).then(function (result) {
872+
if (adapter === 'http') {
873+
['3-c2', '4-d1'].indexOf(result._rev).should.not.equal(-1);
874+
return;
875+
}
865876
result._rev.should.equal('3-c2');
866877
});
867878
});

0 commit comments

Comments
 (0)