Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: skip test-dns-ipv6.js if ipv6 is unavailable #3444

Closed
wants to merge 1 commit into from

Conversation

john-yan
Copy link

Test should be skipped if ipv6 is unavailable on the running system.

@@ -40,6 +40,11 @@ function checkWrap(req) {
assert.ok(typeof req === 'object');
}

if (!common.hasIPv6) {
console.log('1..0 # Skipped: ipv6 part of test, no IPv6 support');
Copy link
Contributor

Choose a reason for hiding this comment

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

the entire test is ipv6. You might want to make copy specify the entire test has failed

Copy link
Author

Choose a reason for hiding this comment

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

yeah, good catch. thanks.

@john-yan
Copy link
Author

Issue number: #3443

@Fishrock123
Copy link
Contributor

LGTM

@@ -40,6 +40,11 @@ function checkWrap(req) {
assert.ok(typeof req === 'object');
}

if (!common.hasIPv6) {
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, but couldn't you move this a little closer to the top of the file?

Copy link
Contributor

Choose a reason for hiding this comment

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

if it is put ahead of some of the variable declarations in the file then the process exit event won't pass.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

done.

@mscdex mscdex added dns Issues and PRs related to the dns subsystem. test Issues and PRs related to the tests. labels Oct 19, 2015
@evanlucas
Copy link
Contributor

LGTM

1 similar comment
@jbergstroem
Copy link
Member

LGTM

@@ -12,6 +12,11 @@ var expected = 0,
running = false,
queue = [];

if (!common.hasIPv6) {
console.log('1..0 # Skipped this test, no IPv6 support');
Copy link
Contributor

Choose a reason for hiding this comment

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

One last nit, the style we use is 1..0 # Skipped: :)

Copy link
Author

Choose a reason for hiding this comment

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

updated. thanks.

jasnell pushed a commit that referenced this pull request Oct 20, 2015
Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
PR-URL: #3444
@jasnell
Copy link
Member

jasnell commented Oct 20, 2015

Landed in a1886cf

@jasnell jasnell closed this Oct 20, 2015
rvagg pushed a commit that referenced this pull request Oct 21, 2015
Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
PR-URL: #3444
@rvagg rvagg mentioned this pull request Oct 21, 2015
jasnell pushed a commit that referenced this pull request Oct 26, 2015
Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
PR-URL: #3444
@jasnell
Copy link
Member

jasnell commented Oct 26, 2015

Landed in v4.x-staging in 49549c9

jasnell pushed a commit that referenced this pull request Oct 29, 2015
Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
PR-URL: #3444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dns Issues and PRs related to the dns subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants