File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 110
110
"jsfuzz" : " ^1.0.15" ,
111
111
"pre-commit" : " ^1.2.2" ,
112
112
"proxy" : " ^2.1.1" ,
113
- "proxyquire" : " ^2.1.3" ,
114
113
"snazzy" : " ^9.0.0" ,
115
114
"standard" : " ^17.0.0" ,
116
115
"tsd" : " ^0.30.1" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ const {
11
11
Readable
12
12
} = require ( 'node:stream' )
13
13
const { promisify } = require ( 'node:util' )
14
- const proxyquire = require ( 'proxyquire' )
15
14
const {
16
15
kBusy,
17
16
kPending,
@@ -366,17 +365,15 @@ test('backpressure algorithm', async (t) => {
366
365
}
367
366
}
368
367
369
- const Pool = proxyquire ( '../lib/dispatcher/pool' , {
370
- './client' : FakeClient
371
- } )
372
-
373
368
const noopHandler = {
374
369
onError ( err ) {
375
370
throw err
376
371
}
377
372
}
378
373
379
- const pool = new Pool ( 'http://notahost' )
374
+ const pool = new Pool ( 'http://notahost' , {
375
+ factory : ( ) => new FakeClient ( )
376
+ } )
380
377
381
378
pool . dispatch ( { } , noopHandler )
382
379
pool . dispatch ( { } , noopHandler )
You can’t perform that action at this time.
0 commit comments