[Pkg-javascript-commits] [node-proper-lockfile] 05/06: skip buffered-spawn tests and patch node binary name

Paolo Greppi paolog-guest at moszumanska.debian.org
Mon Dec 12 09:02:58 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-proper-lockfile.

commit ac799d0311b5c6955c66d36df922d2eb015f87be
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Mon Dec 12 08:14:08 2016 +0000

    skip buffered-spawn tests and patch node binary name
---
 debian/patches/00-spawn.diff | 39 +++++++++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/00-spawn.diff b/debian/patches/00-spawn.diff
new file mode 100644
index 0000000..0616ad0
--- /dev/null
+++ b/debian/patches/00-spawn.diff
@@ -0,0 +1,39 @@
+Description: Skip buffered-spawn tests, patch node binary name.
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at 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) => {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2b5a7d4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-spawn.diff

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



More information about the Pkg-javascript-commits mailing list