[Pkg-javascript-devel] Bug#1108873: unblock: node-supertest/7.0.0+~6.0.2-2

Yadd yadd at debian.org
Sun Jul 6 16:27:04 BST 2025


Package: release.debian.org
Severity: normal
X-Debbugs-Cc: node-supertest at packages.debian.org, yadd at debian.org
Control: affects -1 + src:node-supertest
User: release.debian.org at packages.debian.org
Usertags: unblock

Please unblock package node-supertest

[ Reason ]
Due to Node.js changes, node-supertest test failed (FTBFS #1108816)

[ Impact ]
FTBFS

[ Tests ]
Of course

[ Risks ]
No risk, just a test change

[ Checklist ]
  [X] all changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in testing

Best regards,
Xavier

unblock node-supertest/7.0.0+~6.0.2-2
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index 9d4919d..0ec48ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+node-supertest (7.0.0+~6.0.2-2) unstable; urgency=medium
+
+  * Team upload
+  * Update test to not query nodejs "http" error strings which may change
+    (Closes: #1108816)
+
+ -- Yadd <yadd at debian.org>  Sun, 06 Jul 2025 08:23:01 +0200
+
 node-supertest (7.0.0+~6.0.2-1) unstable; urgency=medium
 
   * Team upload
diff --git a/debian/patches/fix-tests.patch b/debian/patches/fix-tests.patch
new file mode 100644
index 0000000..f228735
--- /dev/null
+++ b/debian/patches/fix-tests.patch
@@ -0,0 +1,17 @@
+Description: don't test message string since it may change depending on Node.js versions
+Author: Yadd <yadd at debian.org>
+Bug-Debian: https://bugs.debian.org/1108816
+Forwarded: no
+Last-Update: 2025-07-06
+
+--- a/test/supertest.js
++++ b/test/supertest.js
+@@ -387,7 +387,7 @@
+         .get('/')
+         .expect(200)
+         .end(function (err, res) {
+-          err.message.should.equal('ECONNREFUSED: Connection refused');
++          err.should.be.ok();
+           done();
+         });
+     });
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d04b329
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-tests.patch


More information about the Pkg-javascript-devel mailing list