[Pkg-javascript-commits] [node-mocha] 01/02: Add make-tests-more-reliable-on-build-daemons.patch

Paul Mathijs Gevers elbrus at moszumanska.debian.org
Fri Mar 24 08:16:36 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 9a92dd2843c0d1c94233d3ba4559447914090eef
Author: Paul Gevers <elbrus at debian.org>
Date:   Fri Mar 24 08:39:02 2017 +0100

    Add make-tests-more-reliable-on-build-daemons.patch
---
 ...make-tests-more-reliable-on-build-daemons.patch | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 37 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
new file mode 100644
index 0000000..8c9bc32
--- /dev/null
+++ b/debian/patches/make-tests-more-reliable-on-build-daemons.patch
@@ -0,0 +1,36 @@
+Description: On autobuilders, the tests during build may take longer than the
+ default timeout. Set it extremely large to avoid random FTBFS.
+ .
+ Additionally, port 8889 is an officially assigned port that may be in
+ use. Ideally an ephemeral port should be used for the test, but I don't know
+ how to accomplish that in a js file.
+Author: Paul Gevers <elbrus at debian.org>
+
+Index: node-mocha/test/mocha.opts
+===================================================================
+--- node-mocha.orig/test/mocha.opts
++++ node-mocha/test/mocha.opts
+@@ -4,4 +4,4 @@
+ --globals okGlobalA,okGlobalB
+ --globals okGlobalC
+ --globals callback*
+---timeout 200
++--timeout 3600000
+Index: node-mocha/test/http.meta.js
+===================================================================
+--- node-mocha.orig/test/http.meta.js
++++ node-mocha/test/http.meta.js
+@@ -19,11 +19,11 @@ var server = http.createServer(function(
+   }
+ })
+ 
+-server.listen(8889);
++server.listen(30666);
+ 
+ function get(url, body, header) {
+   return function(done){
+-    http.get({ path: url, port: 8889, headers: header }, function(res){
++    http.get({ path: url, port: 30666, 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 e0845d9..279c466 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ replace-stdio-customfds.patch
 0002_fix_node_shebang.patch
 0003_images_in_usr_share.patch
 register-coffeescript.patch
+make-tests-more-reliable-on-build-daemons.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