Skip to content

Commit 9a12921

Browse files
committed
test: replaced node-fetch with native fetch in test setup
1 parent 96446be commit 9a12921

File tree

109 files changed

+68
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+68
-159
lines changed

package-lock.json

Lines changed: 0 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@
208208
"nats": "2.29.3",
209209
"nats-v1": "npm:[email protected]",
210210
"node-fetch": "3.3.2",
211-
"node-fetch-v2": "npm:[email protected]",
212211
"node-gyp": "11.2.0",
213212
"node-nats-streaming": "0.3.2",
214213
"oracledb": "6.9.0",

packages/aws-fargate/test/Control.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
const { fork } = require('child_process');
99
const path = require('path');
10-
const fetch = require('node-fetch-v2');
1110

1211
const config = require('@instana/core/test/config');
1312
const AbstractServerlessControl = require('../../serverless/test/util/AbstractServerlessControl');

packages/aws-fargate/test/esm/app.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
import http from 'http';
6-
import fetch from 'node-fetch';
76

87
const downstreamDummyUrl = process.env.DOWNSTREAM_DUMMY_URL;
98
const port = process.env.TASK_HTTP_PORT;

packages/aws-fargate/test/integration_test/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ process.on('SIGTERM', () => {
1212
});
1313

1414
const http = require('http');
15-
const fetch = require('node-fetch-v2');
1615

1716
const { sendToParent } = require('../../../core/test/test_util');
1817

packages/aws-lambda/test/lambdas/async.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const delay = require('../../../core/test/test_util/delay');
1717
// assumed root dir of the Lambda.
1818
require('../../src/metrics/rootDir').root = require('path').resolve(__dirname, '..', '..');
1919

20-
const fetch = require('node-fetch-v2');
21-
2220
const downstreamDummyUrl = process.env.DOWNSTREAM_DUMMY_URL;
2321
const response = {};
2422

packages/aws-lambda/test/lambdas/promise.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const delay = require('../../../core/test/test_util/delay');
1717
// assumed root dir of the Lambda.
1818
require('../../src/metrics/rootDir').root = require('path').resolve(__dirname, '..', '..');
1919

20-
const fetch = require('node-fetch-v2');
21-
2220
const downstreamDummyUrl = process.env.DOWNSTREAM_DUMMY_URL;
2321
const response = {};
2422

packages/aws-lambda/test/specification_compliance/lambda.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const instana = require('../..');
1515
// assumed root dir of the Lambda.
1616
require('../../src/metrics/rootDir').root = require('path').resolve(__dirname, '..', '..');
1717

18-
const fetch = require('node-fetch-v2');
19-
2018
const downstreamDummyUrl = process.env.DOWNSTREAM_DUMMY_URL;
2119

2220
exports.handler = instana.wrap(async event => {

packages/azure-container-services/test/Control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
const { fork } = require('child_process');
88
const path = require('path');
9-
const fetch = require('node-fetch-v2');
9+
1010
const portfinder = require('@instana/collector/test/test_util/portfinder');
1111
const config = require('@instana/core/test/config');
1212
const AbstractServerlessControl = require('../../serverless/test/util/AbstractServerlessControl');

packages/azure-container-services/test/esm/app.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
import http from 'http';
6-
import fetch from 'node-fetch';
76
import getAppPort from '@instana/collector/test/test_util/app-port.js';
87

98
const downstreamDummyUrl = process.env.DOWNSTREAM_DUMMY_URL;

0 commit comments

Comments
 (0)