Skip to content

Commit 811222d

Browse files
committed
fix type errors in node tests
1 parent b488fcf commit 811222d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/node/test/integrations/http.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('default protocols', () => {
168168
let nockProtocol = 'https';
169169

170170
const proxy = 'http://<PROXY_URL>:3128';
171-
const agent = new HttpsProxyAgent(proxy);
171+
const agent = HttpsProxyAgent(proxy);
172172

173173
if (NODE_VERSION.major && NODE_VERSION.major < 9) {
174174
nockProtocol = 'http';

packages/node/test/transports/http.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const sessionPayload: Session = {
3131
update: jest.fn(),
3232
close: jest.fn(),
3333
toJSON: jest.fn(),
34+
ignoreDuration: false,
3435
};
3536
const sessionsPayload: SessionAggregates = {
3637
attrs: { environment: 'test', release: '1.0' },

0 commit comments

Comments
 (0)