Skip to content

Conversation

@hiroppy
Copy link
Member

@hiroppy hiroppy commented May 25, 2019

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

yes

Motivation / Use-Case

  • stop to listen to error event
  • findPort function used tryCount variable, but portfinder has stopPort option, so I modify to define stopPort is defaultPort + retryCount
  • move definePort logic from bin to findPort.js
  • add tests.

Breaking Changes

no

Additional Info

@hiroppy hiroppy requested a review from alexander-akait as a code owner May 25, 2019 20:20
@hiroppy hiroppy force-pushed the feature/refactor-findport branch from 26f1a8d to f4eddbd Compare May 25, 2019 20:22
@hiroppy hiroppy changed the title refactor(findport): don't listen to error event of express refactor(findport): don't listen to http error event May 25, 2019
@codecov
Copy link

codecov bot commented May 25, 2019

Codecov Report

Merging #1924 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1924      +/-   ##
==========================================
- Coverage      88%   87.96%   -0.05%     
==========================================
  Files          14       15       +1     
  Lines         817      814       -3     
  Branches      259      259              
==========================================
- Hits          719      716       -3     
  Misses         84       84              
  Partials       14       14
Impacted Files Coverage Δ
lib/utils/findPort.js 100% <100%> (+5.26%) ⬆️
lib/utils/tryParseInt.js 83.33% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0baa0e0...d8bf2a2. Read the comment docs.

@hiroppy
Copy link
Member Author

hiroppy commented May 25, 2019

I think codecov has been broken...
For example, this pr updated only puppeteer but lib/Server.js was increased coverage by 3.18%.
#1921 (comment)

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Good job

@alexander-akait alexander-akait merged commit 4b097e2 into master May 27, 2019
@alexander-akait alexander-akait deleted the feature/refactor-findport branch May 27, 2019 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants