Skip to content

Commit fa93b5d

Browse files
committed
cr fixes
1 parent 01b2f94 commit fa93b5d

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/compass-user-data/src/user-data.spec.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,6 @@ describe('user-data', function () {
158158
expect(mongoshData?.[1]).to.be.instanceOf(Stats);
159159
}
160160
});
161-
162-
it('reads many number of files', async function () {
163-
const files = Array.from({ length: 10000 }, (_, i) => [
164-
`data${i}.json`,
165-
JSON.stringify({ name: `VSCode${i}` }),
166-
]);
167-
168-
await Promise.all(
169-
files.map(([filepath, data]) => writeFileToStorage(filepath, data))
170-
);
171-
172-
const result = await getUserData().readAll();
173-
expect(result.data).to.have.lengthOf(10000);
174-
});
175161
});
176162

177163
context('UserData.readOne', function () {

packages/compass-user-data/src/user-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class UserData<T extends z.Schema> {
6969
private readonly serialize: SerializeContent<z.input<T>>;
7070
private readonly deserialize: DeserializeContent;
7171
private readonly getFileName: GetFileName;
72-
private readonly semaphore = new Semaphore(1000);
72+
private readonly semaphore = new Semaphore(100);
7373

7474
constructor(
7575
private readonly validator: T,

0 commit comments

Comments
 (0)