Skip to content

Commit 58ee229

Browse files
committed
fix type errors in node tests
1 parent 82bb012 commit 58ee229

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
@@ -169,7 +169,7 @@ describe('default protocols', () => {
169169
let nockProtocol = 'https';
170170

171171
const proxy = 'http://<PROXY_URL>:3128';
172-
const agent = new HttpsProxyAgent(proxy);
172+
const agent = HttpsProxyAgent(proxy);
173173

174174
if (NODE_VERSION.major && NODE_VERSION.major < 9) {
175175
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)