Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWise committed Sep 2, 2023
1 parent 6ee3399 commit 69fbb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/10.database.open.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('new Database()', function () {
expect(fs.existsSync(util.current())).to.be.true;
});
util.itUnix('should accept the "timeout" option', function () {
this.slow(4000);
this.slow(5000);
const testTimeout = (timeout) => {
const db = new Database(util.current(), { timeout });
try {
Expand All @@ -106,7 +106,7 @@ describe('new Database()', function () {
const blocker = this.db = new Database(util.next(), { timeout: 0x7fffffff });
blocker.exec('BEGIN EXCLUSIVE');
testTimeout(0);
testTimeout(1000);
testTimeout(400);
blocker.close();
expect(() => (this.db = new Database(util.current(), { timeout: undefined }))).to.throw(TypeError);
expect(() => (this.db = new Database(util.current(), { timeout: null }))).to.throw(TypeError);
Expand Down

0 comments on commit 69fbb70

Please sign in to comment.