Skip to content

Commit

Permalink
test(resource-detector-alibaba-cloud): revert change, disable tests f…
Browse files Browse the repository at this point in the history
…or node@18
  • Loading branch information
rauno56 committed Sep 9, 2022
1 parent 654932f commit a29dcd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
fail-fast: false
matrix:
node: ["14", "16", "18"]
include:
# tests fail on node@18, incompatibility with nock?
- node: "18"
lerna-extra-args: >-
--ignore @opentelemetry/resource-detector-alibaba-cloud
runs-on: ubuntu-latest
services:
memcached:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class AlibabaCloudEcsDetector implements Detector {
typeof statusCode !== 'number' ||
!(statusCode >= 200 && statusCode < 300)
) {
res.socket.destroy();
res.destroy();
return reject(
new Error(`Failed to load page, status code: ${statusCode}`)
);
Expand Down

0 comments on commit a29dcd3

Please sign in to comment.