[Pkg-javascript-commits] [node-mocha] 03/04: There were more tcp ports involved in the test suite, changing them too

Paul Mathijs Gevers elbrus at moszumanska.debian.org
Sun Mar 26 19:58:33 UTC 2017


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

elbrus pushed a commit to branch debian/1.20
in repository node-mocha.

commit 7f52fa420672f6f57ea4afb2fd74538c25ba2381
Author: Paul Gevers <elbrus at debian.org>
Date:   Sun Mar 26 21:47:43 2017 +0200

    There were more tcp ports involved in the test suite, changing them too
    
    Closes: #858593 hopefully
---
 ...make-tests-more-reliable-on-build-daemons.patch | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/debian/patches/make-tests-more-reliable-on-build-daemons.patch b/debian/patches/make-tests-more-reliable-on-build-daemons.patch
index 8c9bc32..afaab3b 100644
--- a/debian/patches/make-tests-more-reliable-on-build-daemons.patch
+++ b/debian/patches/make-tests-more-reliable-on-build-daemons.patch
@@ -34,3 +34,38 @@ Index: node-mocha/test/http.meta.js
        var buf = '';
        res.should.have.property('statusCode', 200);
        res.setEncoding('utf8');
+Index: node-mocha/test/acceptance/http.js
+===================================================================
+--- node-mocha.orig/test/acceptance/http.js
++++ node-mocha/test/acceptance/http.js
+@@ -5,7 +5,7 @@ var server = http.createServer(function(
+   res.end('Hello World\n');
+ })
+ 
+-server.listen(8888);
++server.listen(31666);
+ 
+ describe('http', function(){
+   it('should provide an example', function(done){
+Index: node-mocha/test/http.meta.2.js
+===================================================================
+--- node-mocha.orig/test/http.meta.2.js
++++ node-mocha/test/http.meta.2.js
+@@ -19,7 +19,7 @@ var server = http.createServer(function(
+   }
+ })
+ 
+-server.listen(8899);
++server.listen(32666);
+ 
+ function get(url) {
+   var fields
+@@ -27,7 +27,7 @@ function get(url) {
+     , header = {};
+ 
+   function request(done) {
+-    http.get({ path: url, port: 8899, headers: header }, function(res){
++    http.get({ path: url, port: 32666, headers: header }, function(res){
+       var buf = '';
+       res.should.have.property('statusCode', 200);
+       res.setEncoding('utf8');

-- 
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