Skip to content

test: update test case in test-net-internal.js - #24461

Closed
leeight wants to merge 1 commit into
nodejs:masterfrom
leeight:fix-test-net-internal
Closed

test: update test case in test-net-internal.js#24461
leeight wants to merge 1 commit into
nodejs:masterfrom
leeight:fix-test-net-internal

Conversation

@leeight

@leeightleeight commented Nov 18, 2018

Copy link
Copy Markdown
Contributor

Add test code for makeSyncWrite, which improve
test/parallel/test-net-internal.js test coverage to 100%

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

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Nov 18, 2018
@leeight
leeightforce-pushed the fix-test-net-internal branch from 84e860b to 27578a5CompareNovember 19, 2018 04:19
@lpinca

Copy link
Copy Markdown
Member

@leeight
leeightforce-pushed the fix-test-net-internal branch from 27578a5 to 4d1179dCompareNovember 19, 2018 10:02
@danbev

Copy link
Copy Markdown
Contributor

Re-run of failing node-test-commit-windows-fanned.
Re-run of failing node-test-commit-custom-suites-freestyle

@leeight
leeightforce-pushed the fix-test-net-internal branch from 4d1179d to 27b0667CompareNovember 22, 2018 16:08
@leeight

Copy link
Copy Markdown
ContributorAuthor

@danbev The testcase crashed on windows, so i skip it.

@danbev

Copy link
Copy Markdown
Contributor

Add test code for `makeSyncWrite`, which improve
`test/parallel/test-net-internal.js` test coverage to 100%
@leeight
leeightforce-pushed the fix-test-net-internal branch from 27b0667 to ae69291CompareNovember 23, 2018 16:44
@leeight

leeight commented Nov 24, 2018

Copy link
Copy Markdown
ContributorAuthor

@danbev Travis CI failed due to

https://api.github.com/repos/nodejs/node/commits/ae69291115e6f8641956346b094d4cbc0cdea134
/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/bin/cmd.js:145
if (err) throw err
^
Error: Invalid api format
at new Parser (/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-base/index.js:23:15)
at new Parser (/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-node/index.js:15:5)
at ValidateCommit.lint (/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/lib/index.js:49:22)
at load (/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/bin/cmd.js:146:9)
at IncomingMessage.res.on (/home/travis/.npm/_npx/4528/lib/node_modules/core-validate-commit/bin/cmd.js:77:9)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1098:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
The command "if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST}; fi" exited with 1.

@danbev

Copy link
Copy Markdown
Contributor

@leeight Would you be able to rebase this PR? Doing should take care of the issue we are seeing with Travis. Thanks

@Trott

Trott commented Dec 1, 2018

Copy link
Copy Markdown
Member

@BridgeARBridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This tests internal APIs by directly accessing it. It should be possible to write the test with public facing APIs only. This is a Windows specific code, so it can only be triggered there and we do not run our regular coverage on Windows either. I don't think this should land as is.

@gireeshpunathil

Copy link
Copy Markdown
Member

ping @leeight - can you address the review comments?

@HarshithaKP

Copy link
Copy Markdown
Member

I will pick this up.

@HarshithaKP

Copy link
Copy Markdown
Member

#31851 removed the api isLegalPort. Part of that, the test was removed it looks like - because the test was testing that API.

@BridgeAR
BridgeARforce-pushed the master branch 2 times, most recently from 8ae28ff to 2935f72CompareMay 31, 2020 12:19
@jasnelljasnell added the stalled Issues and PRs that are stalled. label Jul 7, 2020
@jasnell

Copy link
Copy Markdown
Member

Closing due to lack of continued activity. Can reopen if someone wishes to pick this up again

@jasnelljasnell closed this Jul 7, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stalledIssues and PRs that are stalled.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@leeight@lpinca@danbev@Trott@gireeshpunathil@HarshithaKP@jasnell@BridgeAR@nodejs-github-bot