Skip to content

Commit

Permalink
chore: fix multiblock car file test (#446)
Browse files Browse the repository at this point in the history
The test introduces an artificially small block size to ensure we
have a CAR file with lots of blocks but it's quite slow and often
causes CI failures.

The large file being added to the CAR file is already big enough
to be formed of multiple blocks so splitting it into many smaller
blocks doesn't give us much.
  • Loading branch information
achingbrain authored Feb 22, 2024
1 parent 7c07e11 commit dc2e7a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/car/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ describe('import/export car file', () => {
const otherBlockstore = new MemoryBlockstore()
const otherUnixFS = unixfs({ blockstore: otherBlockstore })
const otherCar = car({ blockstore: otherBlockstore, dagWalkers })
const cid = await otherUnixFS.addBytes(largeFile, {
chunker: fixedSize({
chunkSize: 1024
})
})
const cid = await otherUnixFS.addBytes(largeFile)

const writer = memoryCarWriter(cid)
await otherCar.export(cid, writer)
Expand Down

0 comments on commit dc2e7a6

Please sign in to comment.