Skip to content

[jsconfcn] test: replace string concatenation - #14295

Closed
4garfield wants to merge 1 commit into
nodejs:masterfrom
4garfield:test-template-literal
Closed

[jsconfcn] test: replace string concatenation#14295
4garfield wants to merge 1 commit into
nodejs:masterfrom
4garfield:test-template-literal

Conversation

@4garfield

Copy link
Copy Markdown
Contributor

replace string-concation in test/async-hooks/test-signalwrap.js with template literals

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

replace string-concation in test/async-hooks/test-signalwrap.js with template literals
@nodejs-github-bot nodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. test Issues and PRs related to Node.js core tests and test infrastructure. labels Jul 16, 2017
@4garfield 4garfield changed the title test: replace string concatenation [jsconfcn] test: replace string concatenation Jul 16, 2017
@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Jul 16, 2017

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

LGTM if CI is green

@vsemozhetbyt

vsemozhetbyt commented Jul 16, 2017

Copy link
Copy Markdown
Contributor

(It seems to be duplicate of #14269)
CI: https://ci.nodejs.org/job/node-test-pull-request/9157/

@vsemozhetbyt vsemozhetbyt marked this as a duplicate of #14269 Jul 16, 2017
@tniessen tniessen self-assigned this Jul 16, 2017
refack
refack previously requested changes Jul 16, 2017

let count = 0;
exec('kill -USR2 ' + process.pid);
exec(`kill -USR2 ${process.pid}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you @refack.
It's better to use the process.kill(pid, signal), will update once I'm avaliable.

@refack
refack dismissed their stale review July 16, 2017 16:44

exec vs kill is not worth blocking for

@refack

refack commented Jul 16, 2017

Copy link
Copy Markdown
Contributor

@4garfield thank you very much for you contribution. "Change requests" are a normal part of the process. Personally I'd be very happy if you did follow up and made the code even better 👍

@Trott

Trott commented Jul 16, 2017

Copy link
Copy Markdown
Member

CI was green but I canceled it before the Raspberry Pi 1 devices finished in order to help with our current CI backlog problem.

Not going to land right now to give @4garfield a chance to implement @refack's suggestion.

tniessen pushed a commit that referenced this pull request Jul 23, 2017
Replace string concatenation in test/async-hooks/test-signalwrap.js
with template literals.

PR-URL: #14295
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@tniessen

Copy link
Copy Markdown
Member

Landed in 651fc55, thank you for your contribution! 🎉

CI on master: https://ci.nodejs.org/job/node-test-commit-linuxone/7502/

If you want to follow @refack's suggestion, feel free to open a separate PR.

@tniessen tniessen closed this Jul 23, 2017
addaleax pushed a commit that referenced this pull request Jul 24, 2017
Replace string concatenation in test/async-hooks/test-signalwrap.js
with template literals.

PR-URL: #14295
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@addaleax addaleax mentioned this pull request Jul 24, 2017
@addaleax addaleax mentioned this pull request Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.