File: 00-spawn.diff

package info (click to toggle)
node-proper-lockfile 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 220 kB
  • ctags: 20
  • sloc: makefile: 4; sh: 2
file content (39 lines) | stat: -rw-r--r-- 1,546 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Skip buffered-spawn tests, patch node binary name.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

Index: node-proper-lockfile/test/test.js
===================================================================
--- node-proper-lockfile.orig/test/test.js
+++ node-proper-lockfile/test/test.js
@@ -5,7 +5,6 @@ const path = require('path');
 const cp = require('child_process');
 const expect = require('expect.js');
 const rimraf = require('rimraf');
-const spawn = require('buffered-spawn');
 const async = require('async');
 const lockfile = require('../');
 
@@ -1076,7 +1075,7 @@ describe('misc', () => {
     });
 
     it('should remove open locks if the process crashes', (next) => {
-        cp.exec(`node ${__dirname}/fixtures/crash.js`, (err, stdout, stderr) => {
+        cp.exec(`nodejs ${__dirname}/fixtures/crash.js`, (err, stdout, stderr) => {
             if (!err) {
                 return next(new Error('Should have failed'));
             }
@@ -1092,11 +1091,11 @@ describe('misc', () => {
         });
     });
 
-    it('should not hold the process if it has no more work to do', (next) => {
+    it.skip('should not hold the process if it has no more work to do', (next) => {
         spawn('node', [`${__dirname}/fixtures/unref.js`], next);
     });
 
-    it('should work on stress conditions', function (next) {
+    it.skip('should work on stress conditions', function (next) {
         this.timeout(80000);
 
         spawn('node', [`${__dirname}/fixtures/stress.js`], (err, stdout) => {