Skip to content

fix: use safe-timers only large than interval && add tests#21

Merged
dead-horse merged 1 commit into
masterfrom
exports
Jun 6, 2017
Merged

fix: use safe-timers only large than interval && add tests#21
dead-horse merged 1 commit into
masterfrom
exports

Conversation

@atian25

@atian25 atian25 commented Jun 5, 2017

Copy link
Copy Markdown
Member
Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@atian25 atian25 requested a review from fengmk2 June 5, 2017 05:55
@mention-bot

Copy link
Copy Markdown

@atian25, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dead-horse and @fengmk2 to be potential reviewers.

Comment thread agent.js Outdated

function safeTimeout(fn, delay, ...args) {
if (delay >= MAX_SAFE_TIME) {
if (delay >= safetimers.maxInterval) {

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.

额,不应该是小于么?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

-.-!!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

果然是没有测试覆盖的肯定会有问题,我补下测试

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.

... 逻辑全反了

@codecov

codecov Bot commented Jun 5, 2017

Copy link
Copy Markdown

Codecov Report

Merging #21 into master will increase coverage by 1.78%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #21      +/-   ##
========================================
+ Coverage   98.21%   100%   +1.78%     
========================================
  Files           3      3              
  Lines         112    111       -1     
========================================
+ Hits          110    111       +1     
+ Misses          2      0       -2
Impacted Files Coverage Δ
agent.js 100% <100%> (+3.44%) ⬆️

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 da212ac...63a6e1d. Read the comment docs.

@atian25 atian25 changed the title chore: use safetimers max interval fix: use safe-timers only large than interval && add tests Jun 5, 2017
@atian25 atian25 force-pushed the exports branch 8 times, most recently from 5b8e487 to 5b27e8e Compare June 5, 2017 12:26
@atian25

atian25 commented Jun 6, 2017

Copy link
Copy Markdown
Member Author

@dead-horse 再看看,测试过了

@dead-horse dead-horse merged commit 9ba36c7 into master Jun 6, 2017
@dead-horse dead-horse deleted the exports branch June 6, 2017 01:47
@dead-horse

Copy link
Copy Markdown
Member

2.4.1

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.

4 participants