Skip to content

Commit fe56cf6

Browse files
author
alxndrsn
committed
Make error message check more general
1 parent c938fc1 commit fe56cf6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration/test.replication.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4264,7 +4264,8 @@ describe('suite2 test.replication.js-down-test', function () {
42644264
ajax: {timeout: 10}
42654265
});
42664266
const target = new PouchDB(dbs.name);
4267-
await source.replicate.to(target).should.be.rejectedWith(/^Failed to fetch$/);
4267+
await source.replicate.to(target).should.be
4268+
.rejectedWith(/(^(Failed to fetch|NetworkError when attempting to fetch resource\.)$)|ECONNREFUSED/);
42684269
});
42694270
});
42704271

0 commit comments

Comments
 (0)