[Pkg-javascript-commits] [node-foreground-child] 45/69: test: stay alive long enough to be signaled

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-foreground-child.

commit 0973c9615ee53f895c1f97587ac7118ad0c3d52b
Author: Ryan Graham <r.m.graham at gmail.com>
Date:   Sat May 28 13:19:29 2016 -0700

    test: stay alive long enough to be signaled
    
    Without this, when the tests are run with coverage, the child process
    exits on its own with exit code 0 instead of being killed by the signal
    it sends itself.
---
 test/basic.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/basic.js b/test/basic.js
index 729cc3f..d1b078f 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -3,6 +3,7 @@ var spawn = require('child_process').spawn
 var signalExit = require('signal-exit')
 
 if (process.argv[2] === 'child') {
+  setTimeout(function(){}, 1000);
   console.log('stdout')
   setTimeout(function () {}, 1000)
   switch (process.argv[3]) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git



More information about the Pkg-javascript-commits mailing list