[Pkg-javascript-commits] [node-mocha] 03/10: Change port tests

Leo Iannacone l3on-guest at moszumanska.debian.org
Sat May 30 15:58:24 UTC 2015


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

l3on-guest pushed a commit to branch master
in repository node-mocha.

commit 18c16ce03c6777380bdfa51b870af0a2083d0f13
Author: Leo Iannacone <info at leoiannacone.com>
Date:   Sat May 30 17:23:11 2015 +0200

    Change port tests
---
 debian/patches/0005-test-ports.patch | 25 +++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/0005-test-ports.patch b/debian/patches/0005-test-ports.patch
new file mode 100644
index 0000000..7938e85
--- /dev/null
+++ b/debian/patches/0005-test-ports.patch
@@ -0,0 +1,25 @@
+Description: some ZNC bouncer use this port. Set a different one
+ to prevent false test fails.
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+
+---
+ test/http.meta.js |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/test/http.meta.js
++++ b/test/http.meta.js
+@@ -19,11 +19,11 @@
+   }
+ })
+ 
+-server.listen(8889);
++server.listen(8989);
+ 
+ function get(url, body, header) {
+   return function(done){
+-    http.get({ path: url, port: 8889, headers: header }, function(res){
++    http.get({ path: url, port: 8989, headers: header }, function(res){
+       var buf = '';
+       res.should.have.property('statusCode', 200);
+       res.setEncoding('utf8');
diff --git a/debian/patches/series b/debian/patches/series
index f610865..a601ad5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002_fix_node_shebang.patch
 0003_image_and_css_in_usr_share.patch
 0004-bundle_escape-string-regexp.patch
+0005-test-ports.patch

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



More information about the Pkg-javascript-commits mailing list