Loopback HTTP benchmark

This commit is contained in:
2026-10-21 12:40:00 -04:00
parent 74f269923c
commit c07f3a737b
4 changed files with 50 additions and 6 deletions
+2
View File
@@ -219,6 +219,8 @@ test('native RandomX HTTP: three blocks, mined transfer, peer gossip/sync and du
const alice = wallet(), bob = wallet();
assert.notEqual(alice.owner, bob.owner);
let first = await start(firstDir);
await assert.rejects(start(firstDir), /Data directory locked/,
'a second server process must fail closed rather than run another marketplace worker on the same data directory');
const custody = await json<CustodyPage>(first.base, '/api/custody');
assert.equal(custody.info.mode, 'sandbox'); assert.equal(custody.info.liveDeposits, false);
const custodyTerms: Omit<CustodyCommand, 'signature'> = { version: 1, mode: 'sandbox', policy: CUSTODY_POLICY,