Skip to content

Commit

Permalink
only need to test one timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Aug 24, 2023
1 parent 92d25c8 commit f0ddbc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/10.database.open.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ describe('new Database()', function () {
const blocker = this.db = new Database(util.next(), { timeout: MaxTimeout });
blocker.exec('BEGIN EXCLUSIVE');
testTimeout(0);
// timeouts between 0 and 1000 seem to be ignored by SQLite (!)
// timeouts are rounded to the nearest second by SQLite (!!)
testTimeout(1000);
testTimeout(2000);
blocker.close();
for (const { timeout, err } of [
{ timeout: undefined, err: TypeError },
Expand Down

0 comments on commit f0ddbc9

Please sign in to comment.