Skip to content

Commit 6453928

Browse files
committed
Add more variation to free-space transaction size testing and update version
1 parent 186e811 commit 6453928

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lmdb",
33
"author": "Kris Zyp",
4-
"version": "3.1.5",
4+
"version": "3.1.6",
55
"description": "Simple, efficient, scalable, high-performance LMDB interface",
66
"license": "MIT",
77
"repository": {

test/index.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ describe('lmdb-js', function () {
428428
while (random() < 0.95) text += additive;
429429
if (random() < 0.4) promise = db.remove(i % 40);
430430
else promise = db.put(i % 40, text);
431-
432-
if (i % 2 == 0) {
431+
if (random() < 0.05) {
433432
await promise;
434433
}
435434
}

0 commit comments

Comments
 (0)