Skip to content

test: refactor test-cluster-disconnect - #11981

Closed
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:replace-process-exit
Closed

test: refactor test-cluster-disconnect#11981
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:replace-process-exit

Conversation

@Trott

Copy link
Copy Markdown
Member

Replace process.once('exit', ...) with common.mustCall().

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test cluster

@TrottTrott added cluster Issues and PRs related to the cluster subsystem. test Issues and PRs related to the tests. labels Mar 22, 2017
@Trott
Trottforce-pushed the replace-process-exit branch 2 times, most recently from 89ed0d2 to f67616dCompareMarch 22, 2017 04:59
@santigimeno

Copy link
Copy Markdown
Member

While you're here I think you could remove the common.mustCall() from here as it could happen that the data listener is called more than once

Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
@Trott
Trottforce-pushed the replace-process-exit branch from f67616d to 497dbecCompareMarch 23, 2017 00:03
@jasnell

Copy link
Copy Markdown
Member

@Trott

Copy link
Copy Markdown
MemberAuthor

Landed in a45c2db

Trott added a commit to Trott/io.js that referenced this pull request Mar 24, 2017
Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
PR-URL: nodejs#11981
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@TrottTrott closed this Mar 24, 2017
MylesBorins pushed a commit that referenced this pull request Mar 28, 2017
Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
PR-URL: #11981
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Mar 28, 2017
@italoacasasitaloacasas mentioned this pull request Apr 10, 2017
2 tasks
MylesBorins pushed a commit that referenced this pull request Apr 18, 2017
Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
PR-URL: #11981
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins pushed a commit that referenced this pull request Apr 19, 2017
Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
PR-URL: #11981
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Apr 19, 2017
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
Replace `process.once('exit', ...)` with `common.mustCall()`.
Remove unneeded variable in loop declaration.
PR-URL: nodejs/node#11981
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@Trott
Trott deleted the replace-process-exit branch January 13, 2022 22:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clusterIssues and PRs related to the cluster subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@Trott@santigimeno@jasnell@lpinca@targos@cjihrig@MylesBorins