• Bug#1108873: unblock: node-supertest/7.0.0+~6.0.2-2

    From Yadd@21:1/5 to All on Sun Jul 6 17:30:03 2025
    XPost: linux.debian.devel.release

    This is a multi-part MIME message sent by reportbug.


    Package: release.debian.org
    Severity: normal
    X-Debbugs-Cc: [email protected], [email protected]
    Control: affects -1 + src:node-supertest
    User: [email protected]
    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

    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 <[email protected]> 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 <[email protected]>
    +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