[Pkg-javascript-commits] [node-mocha] 01/03: Use variable for httpport
Bastien Roucariès
rouca at moszumanska.debian.org
Mon Mar 27 10:36:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch debian/1.20-7
in repository node-mocha.
commit a5e711f5f22773160c3f7a20d49be77d08cd7cb8
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Mon Mar 27 00:16:56 2017 +0200
Use variable for httpport
Less error will hopefully fix bug
---
.../make-tests-more-reliable-on-build-daemons.patch | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
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 afaab3b..3f1f85c 100644
--- a/debian/patches/make-tests-more-reliable-on-build-daemons.patch
+++ b/debian/patches/make-tests-more-reliable-on-build-daemons.patch
@@ -38,15 +38,25 @@ 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(
+@@ -1,15 +1,16 @@
+
+ var http = require('http');
++var httpport = 31666;
+
+ var server = http.createServer(function(req, res){
res.end('Hello World\n');
})
-server.listen(8888);
-+server.listen(31666);
++server.listen(httport);
describe('http', function(){
it('should provide an example', function(done){
+- http.get({ path: '/', port: 8888 }, function(res){
++ http.get({ path: '/', port: httpport }, function(res){
+ res.should.have.property('statusCode', 200);
+ done();
+ })
Index: node-mocha/test/http.meta.2.js
===================================================================
--- node-mocha.orig/test/http.meta.2.js
--
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