diff --git a/packages/compass-user-data/src/user-data.spec.ts b/packages/compass-user-data/src/user-data.spec.ts index 829b5b9ccd3..e1f2ead78cb 100644 --- a/packages/compass-user-data/src/user-data.spec.ts +++ b/packages/compass-user-data/src/user-data.spec.ts @@ -158,20 +158,6 @@ describe('user-data', function () { expect(mongoshData?.[1]).to.be.instanceOf(Stats); } }); - - it('reads many number of files', async function () { - const files = Array.from({ length: 10000 }, (_, i) => [ - `data${i}.json`, - JSON.stringify({ name: `VSCode${i}` }), - ]); - - await Promise.all( - files.map(([filepath, data]) => writeFileToStorage(filepath, data)) - ); - - const result = await getUserData().readAll(); - expect(result.data).to.have.lengthOf(10000); - }); }); context('UserData.readOne', function () { diff --git a/packages/compass-user-data/src/user-data.ts b/packages/compass-user-data/src/user-data.ts index 768de9e8e89..92d3cd36d5e 100644 --- a/packages/compass-user-data/src/user-data.ts +++ b/packages/compass-user-data/src/user-data.ts @@ -69,7 +69,7 @@ export class UserData { private readonly serialize: SerializeContent>; private readonly deserialize: DeserializeContent; private readonly getFileName: GetFileName; - private readonly semaphore = new Semaphore(1000); + private readonly semaphore = new Semaphore(100); constructor( private readonly validator: T,