| … | … | @@ -493,11 +493,14 @@ test('rejected core proof keeps its full reservation until late session settleme |
| 493 | 493 | test('many rejected keys leave only bounded residue and exact admission charges it on retry', async (t) => { |
| 494 | 494 | const dir = await mkdtemp(join(tmpdir(), 'storage-rejected-residue-')) |
| 495 | 495 | t.teardown(() => rm(dir, { recursive: true, force: true })) |
| 496 | | const config = { storage: dir, maxStorageBytes: 4 * 1024 * 1024 } |
| 497 | | markStorageCapExplicit(config, 'test') |
| 498 | | resolveStorageCap(config) |
| 499 | 496 | const store = new Corestore(dir) |
| 500 | 497 | await store.ready() |
| 498 | const config = { |
| 499 | storage: dir, |
| 500 | maxStorageBytes: measureStorageTreeBytes(dir) + 4 * 1024 * 1024 |
| 501 | } |
| 502 | markStorageCapExplicit(config, 'test') |
| 503 | resolveStorageCap(config) |
| 501 | 504 | const admission = new StorageAdmissionAuthority(config, { |
| 502 | 505 | getUsedBytes: () => measureStorageTreeBytes(dir), |
| 503 | 506 | recoveryKinds: [] |