File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
packages/compass-user-data/src Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff 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 ( ) {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments