Skip to content

test: improve test coverage of dns/promises - #41133

Merged
nodejs-github-bot merged 2 commits into
nodejs:masterfrom
kuriyosh:dns-options-test
Dec 19, 2021
Merged

test: improve test coverage of dns/promises#41133
nodejs-github-bot merged 2 commits into
nodejs:masterfrom
kuriyosh:dns-options-test

Conversation

@kuriyosh

Copy link
Copy Markdown
Contributor

This improves a test coverage in lib/internal/dns/promises.
It tests emitting warning when the options types of lookup method are invalid.

ref: https://coverage.nodejs.org/coverage-18ff5832501b66b4/lib/internal/dns/promises.js.html#L116

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Dec 10, 2021
@MesteeryMesteery added the dns Issues and PRs related to the dns subsystem. label Dec 10, 2021
Comment threadtest/parallel/test-dns-lookup-promises-options-deprecated.js Outdated
@jasnell

Copy link
Copy Markdown
Member

Looks like there are some relevant test failures that need to be looked at! :-)

@kuriyosh
kuriyoshforce-pushed the dns-options-test branch 2 times, most recently from 0c67e16 to a197004CompareDecember 11, 2021 01:59

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

This test only check whether DeprecationWarning is emitted when hints is not a number.
Since the valid string value of hints depends on the OS environment, give an invalid string value here and assert the error.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Ayase-252Ayase-252 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 13, 2021
@aduh95aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Dec 19, 2021
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 19, 2021
@nodejs-github-bot
nodejs-github-bot merged commit 9b903d1 into nodejs:masterDec 19, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 9b903d1

targos pushed a commit that referenced this pull request Jan 14, 2022
PR-URL: #41133
Refs: https://coverage.nodejs.org/coverage-18ff5832501b66b4/lib/internal/dns/promises.js.html#L116
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Qingyu Deng <i@ayase-lab.com>
@targostargos mentioned this pull request Jan 16, 2022
@danielleadams

Copy link
Copy Markdown
Contributor

@kuriyosh This caused a failed test when pulling into the v16.x release. Do you mind creating a backport PR?

@kuriyosh

Copy link
Copy Markdown
ContributorAuthor

@danielleadams
Of course. Please ping me if I have any necessary actions.

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.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.dnsIssues and PRs related to the dns subsystem.needs-ciPRs that need a full CI run.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@kuriyosh@jasnell@nodejs-github-bot@danielleadams@lpinca@Ayase-252@aduh95@targos@Mesteery