Skip to content

Commit 85c181a

Browse files
blade254353074addaleax
authored andcommitted
test: use template literals as appropriate
Replace string concatenation with template string literals in test-graph.signal.js. PR-URL: #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>
1 parent 65bccd5 commit 85c181a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/async-hooks/test-graph.signal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ hooks.enable();
1616
process.on('SIGUSR2', common.mustCall(onsigusr2, 2));
1717

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

2121
function onsigusr2() {
2222
count++;
2323

2424
if (count === 1) {
2525
// trigger same signal handler again
26-
exec('kill -USR2 ' + process.pid);
26+
exec(`kill -USR2 ${process.pid}`);
2727
} else {
2828
// install another signal handler
2929
process.removeAllListeners('SIGUSR2');
3030
process.on('SIGUSR2', common.mustCall(onsigusr2Again));
3131

32-
exec('kill -USR2 ' + process.pid);
32+
exec(`kill -USR2 ${process.pid}`);
3333
}
3434
}
3535

0 commit comments

Comments
 (0)