We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb50962 commit 706768dCopy full SHA for 706768d
packages/node-http-handler/src/node-http-handler.spec.ts
@@ -18,12 +18,12 @@ import {
18
describe("NodeHttpHandler", () => {
19
describe("constructor", () => {
20
it("can set httpAgent and httpsAgent", () => {
21
- let maxSockets = Math.round(Math.random() * 50);
+ let maxSockets = Math.round(Math.random() * 50) + 1;
22
let nodeHttpHandler = new NodeHttpHandler({
23
httpAgent: new http.Agent({ maxSockets }),
24
});
25
expect((nodeHttpHandler as any).httpAgent.maxSockets).toEqual(maxSockets);
26
- maxSockets = Math.round(Math.random() * 50);
+ maxSockets = Math.round(Math.random() * 50) + 1;
27
nodeHttpHandler = new NodeHttpHandler({
28
httpsAgent: new https.Agent({ maxSockets }),
29
0 commit comments