Skip to content

test: refactor parallel/test-timer-close - #10517

Closed
BethGriggs wants to merge 1 commit into
nodejs:masterfrom
BethGriggs:pr-test-timer-close
Closed

test: refactor parallel/test-timer-close#10517
BethGriggs wants to merge 1 commit into
nodejs:masterfrom
BethGriggs:pr-test-timer-close

Conversation

@BethGriggs

@BethGriggsBethGriggs commented Dec 29, 2016

Copy link
Copy Markdown
Member

Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.

Checklist
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Description of change

Refactor and simplify test-timer-close.js.

@nodejs-github-botnodejs-github-bot added test Issues and PRs related to the tests. lts-watch-v6.x labels Dec 29, 2016
@gibfahn

gibfahn commented Dec 29, 2016

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-commit/6915/

cc/ @bnoordhuis as you raised the original issue which this test checks (#1287)

@gibfahngibfahn 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.

CI is green, LGTM

@gibfahngibfahn self-assigned this Dec 29, 2016
@mscdexmscdex added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label Dec 29, 2016
Comment threadtest/parallel/test-timer-close.js Outdated

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.

hmm... can't say that I'm really a fan of this style (even tho I know it was used before this change)... I prefer separating out the call to process.binding...

constTimer=process.binding('timer_wrap').Timer;constt=newTimer();

@jasnelljasnell 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.

Minor nit but otherwise LGTM

@gibfahngibfahn 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.

Still LGTM (post @jasnell's nit)

CI 2: https://ci.nodejs.org/job/node-test-commit/6919/

EDIT: Looks like FreeBSD CI failures were unrelated to this test.

@gibfahn

Copy link
Copy Markdown
Member

Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
@gibfahn

gibfahn commented Jan 3, 2017

Copy link
Copy Markdown
Member

CI 4: https://ci.nodejs.org/job/node-test-commit/6983/

EDIT: This failure on FreeBSD seems unrelated:

not ok 688 parallel/test-net-connect-local-error
---
duration_ms: 0.186
severity: fail
stack: |-
assert.js:85
throw new assert.AssertionError({
^
AssertionError: undefined == 12446
at Socket.onError (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/parallel/test-net-connect-local-error.js:13:10)
at Socket.<anonymous> (/usr/home/iojs/build/workspace/node-test-commit-freebsd/nodes/freebsd11-x64/test/common.js:443:15)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
...

@gibfahn

Copy link
Copy Markdown
Member

Landed in 5a51955

@gibfahngibfahn closed this Jan 3, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 18, 2017
Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
PR-URL: nodejs#10517
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 19, 2017
Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
PR-URL: nodejs#10517
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
targos pushed a commit that referenced this pull request Jan 28, 2017
Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
PR-URL: #10517
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
@italoacasasitaloacasas mentioned this pull request Jan 29, 2017
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
PR-URL: nodejs#10517
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
italoacasas pushed a commit to italoacasas/node that referenced this pull request Jan 30, 2017
Refactor and simplify parallel/test-timer-close.js. Add comment to
describe the test case.
PR-URL: nodejs#10517
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
@MylesBorins

Copy link
Copy Markdown
Contributor

This does not land cleanly in LTS. Added dont-land label. Please feel free to manually backport

@BethGriggs
BethGriggs deleted the pr-test-timer-close branch February 21, 2018 15:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testIssues and PRs related to the tests.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@BethGriggs@gibfahn@MylesBorins@jasnell@santigimeno@Fishrock123@cjihrig@mscdex@nodejs-github-bot