We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfab3a commit a48469fCopy full SHA for a48469f
test/parallel/test-signal-handler.js
@@ -32,14 +32,14 @@ var i = 0;
32
setInterval(function() {
33
console.log('running process...' + ++i);
34
35
- if (i == 5) {
+ if (i === 5) {
36
process.kill(process.pid, 'SIGUSR1');
37
}
38
}, 1);
39
40
// Test on condition where a watcher for SIGNAL
41
// has been previously registered, and `process.listeners(SIGNAL).length === 1`
42
-process.on('SIGHUP', function() {});
+process.on('SIGHUP', function() { common.fail('should not run'); });
43
process.removeAllListeners('SIGHUP');
44
process.on('SIGHUP', function() { sighup = true; });
45
process.kill(process.pid, 'SIGHUP');
0 commit comments