[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1112340: bookworm-pu: package node-nodeunit/0.11.3+ds-5~deb12u1



Package: release.debian.org
Followup-For: Bug #1112340

Forgot the debdiff
diff -Nru node-nodeunit-0.11.3+ds/debian/changelog node-nodeunit-0.11.3+ds/debian/changelog
--- node-nodeunit-0.11.3+ds/debian/changelog	2022-11-25 13:46:27.000000000 +0100
+++ node-nodeunit-0.11.3+ds/debian/changelog	2025-08-28 19:45:28.000000000 +0200
@@ -1,3 +1,9 @@
+node-nodeunit (0.11.3+ds-5~deb12u1) bookworm; urgency=medium
+
+  * Patch: fix test flakyness. Closes: #1112339.
+
+ -- Jérémy Lal <kapouer@melix.org>  Thu, 28 Aug 2025 19:45:28 +0200
+
 node-nodeunit (0.11.3+ds-4) unstable; urgency=medium
 
   * Team upload
diff -Nru node-nodeunit-0.11.3+ds/debian/patches/fix-listen-test.patch node-nodeunit-0.11.3+ds/debian/patches/fix-listen-test.patch
--- node-nodeunit-0.11.3+ds/debian/patches/fix-listen-test.patch	1970-01-01 01:00:00.000000000 +0100
+++ node-nodeunit-0.11.3+ds/debian/patches/fix-listen-test.patch	2025-08-28 19:14:45.000000000 +0200
@@ -0,0 +1,23 @@
+Description: test assumes server.listen is immediate
+ This software is no longer maintained upstream. Not forwarding.
+Forwarded: not-needed
+Author: Jérémy Lal <kapouer@melix.org>
+--- a/lib/utils.js
++++ b/lib/utils.js
+@@ -177,7 +177,6 @@
+     var port = process.env.PORT || 3000;
+ 
+     var server = http.createServer(cgi);
+-    server.listen(port, hostname);
+ 
+     var agent = new http.Agent({ host: hostname, port: port, maxSockets: 1 });
+     var client = {
+@@ -210,7 +209,7 @@
+         }
+     };
+ 
+-    process.nextTick(function () {
++    server.listen(port, hostname, function () {
+         if (envReady && typeof envReady === 'function') {
+             envReady(server, client);
+         }
diff -Nru node-nodeunit-0.11.3+ds/debian/patches/series node-nodeunit-0.11.3+ds/debian/patches/series
--- node-nodeunit-0.11.3+ds/debian/patches/series	2022-09-14 11:42:42.000000000 +0200
+++ node-nodeunit-0.11.3+ds/debian/patches/series	2025-08-28 19:14:45.000000000 +0200
@@ -3,3 +3,4 @@
 0003-json2-is-not-needed-in-modern-browser.patch
 0004-Prepare-browserify.patch
 replace-__proto__.patch
+fix-listen-test.patch

Reply to: