Skip to content

Commit

Permalink
Relax allowed timeout (GHA on macOS is slow) (#1193)
Browse files Browse the repository at this point in the history
relax allowed timeout (GHA is slow)
  • Loading branch information
mceachen authored May 30, 2024
1 parent f120eef commit afb31e0
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 afb31e0

Please sign in to comment.