From dc2e7a61725dd8005625fc3c18d6d8a69761c9b3 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 22 Feb 2024 09:22:03 +0000 Subject: [PATCH] chore: fix multiblock car file test (#446) 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. --- packages/car/test/index.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/car/test/index.spec.ts b/packages/car/test/index.spec.ts index 3b371fe21..91642b881 100644 --- a/packages/car/test/index.spec.ts +++ b/packages/car/test/index.spec.ts @@ -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)