Skip to content

Conversation

@Trott
Copy link
Member

Add coverage for uv_getaddrinfo() returning an error.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Add coverage for uv_getaddrinfo() returning an error.
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Apr 18, 2019
@Trott
Copy link
MemberAuthor

This adds coverage for

reject(dnsException(err,'getaddrinfo',hostname));
.

Copy link
Member

@mhdawsonmhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nodejs-github-bot
Copy link
Collaborator

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 18, 2019
assert.strictEqual(error.code,'ENOMEM');
assert.strictEqual(error.hostname,'example.com');
})
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use assert.rejects instead.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done.

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
MemberAuthor

Landed in 7167eb2

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Trott@nodejs-github-bot@cjihrig@BridgeAR@mhdawson