From f1071b1c7d48ce7e115f548d265bb3c167a9a789 Mon Sep 17 00:00:00 2001 From: hdegroote <75906619+HDegroote@users.noreply.github.com> Date: Wed, 5 Nov 2025 15:04:40 +0100 Subject: [PATCH 1/2] Fix test (do not pass primaryKey explicitly) --- test/helpers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/helpers.js b/test/helpers.js index e5fa375..753c082 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -40,8 +40,7 @@ async function createStores (n, t) { const stores = [] for (let i = 0; i < n; i++) { const storage = await tmpDir() - const primaryKey = Buffer.alloc(32, i) - stores.push(new Corestore(storage, { primaryKey })) + stores.push(new Corestore(storage)) } t.teardown(() => Promise.all(stores.map(s => s.close())), { order: 2 }) From b9e238f355bdd80b2ac21c286386f051198b2b17 Mon Sep 17 00:00:00 2001 From: hdegroote <75906619+HDegroote@users.noreply.github.com> Date: Wed, 5 Nov 2025 15:09:15 +0100 Subject: [PATCH 2/2] alt fix --- test/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helpers.js b/test/helpers.js index 753c082..6b6c3cd 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -40,7 +40,8 @@ async function createStores (n, t) { const stores = [] for (let i = 0; i < n; i++) { const storage = await tmpDir() - stores.push(new Corestore(storage)) + const primaryKey = Buffer.alloc(32, i) + stores.push(new Corestore(storage, { primaryKey, unsafe: true })) } t.teardown(() => Promise.all(stores.map(s => s.close())), { order: 2 })