[Pkg-javascript-commits] [node-resumer] 01/01: Fix testsuite
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Apr 9 20:05:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-resumer.
commit aa4abf709ad8e29a5a8abad2688a082553499ee2
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sun Apr 9 18:07:45 2017 +0200
Fix testsuite
Fix testsuite
---
debian/changelog | 1 +
debian/control | 2 +-
debian/patches/FixTestSuite.diff | 56 ++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
4 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7c84141..766a82e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ node-resumer (0.0.0-3) unstable; urgency=medium
* Team upload.
* Bump to compat 10.
* Run testsuite.
+ * Fix testsuite by using recent node-concat.
-- Bastien Roucariès <rouca at debian.org> Sun, 09 Apr 2017 15:40:54 +0200
diff --git a/debian/control b/debian/control
index 4b8cbf5..3a25280 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 10)
, dpkg-dev (>= 1.17.14)
, nodejs (>= 4.7)
, node-tape (>= 4.0) <!nocheck>
- , node-concat-stream (>= 0.1.1) <!nocheck>
+ , node-concat-stream (>= 1.4.4) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/substack/resumer
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-resumer.git
diff --git a/debian/patches/FixTestSuite.diff b/debian/patches/FixTestSuite.diff
new file mode 100644
index 0000000..4a2c572
--- /dev/null
+++ b/debian/patches/FixTestSuite.diff
@@ -0,0 +1,56 @@
+Subject: Fix test suite
+From: Tom Hughes
+
+Fix test suite by using more recent node-concat-stream
+
+Origin: https://github.com/substack/resumer/pull/2
+Forwarded: https://github.com/substack/resumer/issues/4
+
+Index: node-resumer/package.json
+===================================================================
+--- node-resumer.orig/package.json
++++ node-resumer/package.json
+@@ -9,7 +9,7 @@
+ "devDependencies": {
+ "tap": "~0.4.0",
+ "tape": "~1.0.2",
+- "concat-stream": "~0.1.1"
++ "concat-stream": "~1.4.4"
+ },
+ "scripts": {
+ "test": "tap test/*.js"
+Index: node-resumer/test/resume.js
+===================================================================
+--- node-resumer.orig/test/resume.js
++++ node-resumer/test/resume.js
+@@ -6,7 +6,7 @@ test('implicit resume', function (t) {
+ t.plan(1);
+
+ var s = createStream();
+- s.pipe(concat(function (err, body) {
++ s.pipe(concat(function (body) {
+ t.equal(body, 'beep boop\n');
+ }));
+ });
+@@ -23,7 +23,7 @@ test('pause/resume', function (t) {
+ s.resume();
+ }, 100);
+
+- s.pipe(concat(function (err, body) {
++ s.pipe(concat(function (body) {
+ t.equal(paused, false);
+ t.equal(body, 'beep boop\n');
+ }));
+Index: node-resumer/test/through.js
+===================================================================
+--- node-resumer.orig/test/through.js
++++ node-resumer/test/through.js
+@@ -11,7 +11,7 @@ test('through write/end', function (t) {
+ t.ok(true);
+ });
+
+- s.pipe(concat(function (err, body) {
++ s.pipe(concat(function (body) {
+ t.equal(body, 'BEGIN\nRAWR\nEND\n');
+ }));
+
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..85f2598 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+FixTestSuite.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-resumer.git
More information about the Pkg-javascript-commits
mailing list