[Pkg-javascript-commits] [node-tar] 01/08: Add patch fixing test
Jérémy Lal
kapouer at moszumanska.debian.org
Fri Nov 18 08:53:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-tar.
commit 68b4ba3b114d543a5ac90a6b5558400e4d7f9443
Author: Jérémy Lal <kapouer at melix.org>
Date: Thu Nov 17 23:14:10 2016 +0100
Add patch fixing test
---
debian/patches/fixtest.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 21 insertions(+)
diff --git a/debian/patches/fixtest.patch b/debian/patches/fixtest.patch
new file mode 100644
index 0000000..767f8d9
--- /dev/null
+++ b/debian/patches/fixtest.patch
@@ -0,0 +1,20 @@
+Description: fix a test failing with node >= 4
+Origin: https://github.com/npm/node-tar/pull/68/commits/5e7484da
+Last-Update: 2016-11-17
+--- a/test/error-on-broken.js
++++ b/test/error-on-broken.js
+@@ -18,8 +18,13 @@
+ tap.test('extract test', function (t) {
+ var extract = tar.Extract(target)
+ var inp = fs.createReadStream(file)
++ var gunzip = inp.pipe(zlib.createGunzip())
++ gunzip.pipe(extract)
+
+- inp.pipe(zlib.createGunzip()).pipe(extract)
++ gunzip.on('error', function (er) {
++ t.equal(er.message, 'unexpected end of file')
++ t.end()
++ })
+
+ extract.on('error', function (er) {
+ t.equal(er.message, 'unexpected eof', 'error noticed')
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d1851b7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fixtest.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-tar.git
More information about the Pkg-javascript-commits
mailing list