From 64539286c5401b197ea413171a5b4b9c05e5cced Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Thu, 14 Nov 2024 08:05:18 -0700 Subject: [PATCH] Add more variation to free-space transaction size testing and update version --- package.json | 2 +- test/index.test.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d971edafe..2d21b87cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lmdb", "author": "Kris Zyp", - "version": "3.1.5", + "version": "3.1.6", "description": "Simple, efficient, scalable, high-performance LMDB interface", "license": "MIT", "repository": { diff --git a/test/index.test.js b/test/index.test.js index 625d85840..93d3b2b4c 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -428,8 +428,7 @@ describe('lmdb-js', function () { while (random() < 0.95) text += additive; if (random() < 0.4) promise = db.remove(i % 40); else promise = db.put(i % 40, text); - - if (i % 2 == 0) { + if (random() < 0.05) { await promise; } }