diff options
author | blade254353074 <blade254353074@hotmail.com> | 2017-07-16 15:36:22 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-07-17 05:35:57 -0700 |
commit | 0aae941dbe0acf7c2bc920f563631bc20e5c075f (patch) | |
tree | 35e714b53cd922a6cc86e1f191670a83302c929b /test/async-hooks | |
parent | e0340af4551717ada908dc9fa1a4cd706004d728 (diff) | |
download | android-node-v8-0aae941dbe0acf7c2bc920f563631bc20e5c075f.tar.gz android-node-v8-0aae941dbe0acf7c2bc920f563631bc20e5c075f.tar.bz2 android-node-v8-0aae941dbe0acf7c2bc920f563631bc20e5c075f.zip |
test: use template literals as appropriate
Replace string concatenation with template string literals in
test-graph.signal.js.
PR-URL: https://github.com/nodejs/node/pull/14289
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/async-hooks')
-rw-r--r-- | test/async-hooks/test-graph.signal.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/async-hooks/test-graph.signal.js b/test/async-hooks/test-graph.signal.js index 3facdae0fa..92334b9826 100644 --- a/test/async-hooks/test-graph.signal.js +++ b/test/async-hooks/test-graph.signal.js @@ -16,20 +16,20 @@ hooks.enable(); process.on('SIGUSR2', common.mustCall(onsigusr2, 2)); let count = 0; -exec('kill -USR2 ' + process.pid); +exec(`kill -USR2 ${process.pid}`); function onsigusr2() { count++; if (count === 1) { // trigger same signal handler again - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } else { // install another signal handler process.removeAllListeners('SIGUSR2'); process.on('SIGUSR2', common.mustCall(onsigusr2Again)); - exec('kill -USR2 ' + process.pid); + exec(`kill -USR2 ${process.pid}`); } } |