Skip to content

Commit c0b0ccd

Browse files
committed
adjust timeout and runtime based on a const
1 parent bc5f585 commit c0b0ccd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/23.statement.iterate.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,10 @@ describe('Statement#iterate()', function () {
247247
).to.throw(TypeError);
248248
});
249249

250-
it("should read and write non-trivial numbers of rows", function () {
251-
this.timeout(5000);
252-
const runUntil = Date.now() + 1000
250+
it.only("should read and write non-trivial numbers of rows", function () {
251+
const insertRuntime = 10000
252+
this.timeout(insertRuntime * 2.5);
253+
const runUntil = Date.now() + insertRuntime
253254
let i = 0;
254255
const r = .141592654
255256
this.db.prepare('CREATE TABLE t (id INTEGER, b TEXT, c REAL)').run();

0 commit comments

Comments
 (0)