Skip to content

Commit

Permalink
chore: tests for http agent options
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Oct 23, 2024
1 parent b94a433 commit 442bb60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/unit/base/RequestClient.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ describe("RequestClient constructor", function () {
undefined
);
expect(requestClient.axios.defaults.httpsAgent.options.maxSockets).toBe(
undefined
20
);
expect(
requestClient.axios.defaults.httpsAgent.options.maxTotalSockets
).toBe(undefined);
).toBe(100);
expect(requestClient.axios.defaults.httpsAgent.options.maxFreeSockets).toBe(
undefined
5
);
expect(requestClient.axios.defaults.httpsAgent.options.scheduling).toBe(
undefined
Expand Down Expand Up @@ -157,13 +157,13 @@ describe("RequestClient constructor", function () {
undefined
);
expect(requestClient.axios.defaults.httpsAgent.options.maxSockets).toBe(
undefined
20
);
expect(
requestClient.axios.defaults.httpsAgent.options.maxTotalSockets
).toEqual(1500);
expect(requestClient.axios.defaults.httpsAgent.options.maxFreeSockets).toBe(
undefined
5
);
expect(requestClient.axios.defaults.httpsAgent.options.scheduling).toEqual(
"lifo"
Expand Down

0 comments on commit 442bb60

Please sign in to comment.