From 442bb60ff9a05b2ccdaa92e2fde606f0975b48bc Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Wed, 23 Oct 2024 16:15:00 +0530 Subject: [PATCH] chore: tests for http agent options --- spec/unit/base/RequestClient.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/unit/base/RequestClient.spec.js b/spec/unit/base/RequestClient.spec.js index 310b92ef37..bb42a33d8d 100644 --- a/spec/unit/base/RequestClient.spec.js +++ b/spec/unit/base/RequestClient.spec.js @@ -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 @@ -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"