Skip to content

Commit

Permalink
chore: fix tests to default keep-alive
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Oct 28, 2024
1 parent ad733dc commit d64c3be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/base/RequestClient.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe("RequestClient constructor", function () {
30000
);
expect(requestClient.axios.defaults.httpsAgent.options.keepAlive).toBe(
undefined
true
);
expect(requestClient.axios.defaults.httpsAgent.options.keepAliveMsecs).toBe(
undefined
Expand Down Expand Up @@ -218,7 +218,7 @@ describe("lastResponse and lastRequest defined", function () {
expect(client.lastRequest.headers).toEqual({
"test-header-key": "test-header-value",
Authorization: "Basic dGVzdC11c2VybmFtZTp0ZXN0LXBhc3N3b3Jk",
Connection: "close",
Connection: "keep-alive",
});
expect(client.lastRequest.data).toEqual({
"test-data-key": "test-data-value",
Expand Down Expand Up @@ -284,7 +284,7 @@ describe("lastRequest defined, lastResponse undefined", function () {
expect(client.lastRequest.headers).toEqual({
"test-header-key": "test-header-value",
Authorization: "Basic dGVzdC11c2VybmFtZTp0ZXN0LXBhc3N3b3Jk",
Connection: "close",
Connection: "keep-alive",
});
expect(client.lastRequest.data).toEqual({
"test-data-key": "test-data-value",
Expand Down

0 comments on commit d64c3be

Please sign in to comment.