Skip to content

Commit

Permalink
Relax allowed timeout (GHA on macOS is slow)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew McEachen <[email protected]>
  • Loading branch information
m4heshd and mceachen committed May 31, 2024
1 parent 032b836 commit 6489647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/10.database.open.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ describe('new Database()', function () {
const start = Date.now();
expect(() => db.exec('BEGIN EXCLUSIVE')).to.throw(Database.SqliteError).with.property('code', 'SQLITE_BUSY');
const end = Date.now();
expect(end - start).to.be.within(timeout - 1, timeout * 3 + 100);
// GHA is slow: a 500ms timeout can take 1685ms to fail.
expect(end - start).to.be.within(timeout - 1, timeout * 3 + 250);
} finally {
db.close();
}
Expand Down

0 comments on commit 6489647

Please sign in to comment.