mirror of
https://github.com/hanzoai/better-sqlite3-multiple-ciphers.git
synced 2026-09-24 16:57:19 +00:00
Relax allowed timeout (GHA on macOS is slow)
Co-authored-by: Matthew McEachen <[email protected]>
This commit is contained in:
co-authored by
Matthew McEachen
parent
3eb41d3810
commit
1d7ed912df
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user