Skip to content

Commit 97ab5a9

Browse files
mceachenArGeoph
authored andcommitted
Relax allowed timeout (GHA on macOS is slow) (WiseLibs#1193)
relax allowed timeout (GHA is slow)
1 parent 1252a17 commit 97ab5a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/10.database.open.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ describe('new Database()', function () {
9898
const start = Date.now();
9999
expect(() => db.exec('BEGIN EXCLUSIVE')).to.throw(Database.SqliteError).with.property('code', 'SQLITE_BUSY');
100100
const end = Date.now();
101-
expect(end - start).to.be.within(timeout - 1, timeout * 3 + 100);
101+
// GHA is slow: a 500ms timeout can take 1685ms to fail.
102+
expect(end - start).to.be.within(timeout - 1, timeout * 3 + 250);
102103
} finally {
103104
db.close();
104105
}

0 commit comments

Comments
 (0)