test: remove text "Not Found" from httperror

undici (v8.0.2) in node 26.0 enables http2 by default which has empty statusText
refs: https://github.com/nodejs/undici/blob/584e6aec01a922f6e9ba259ee7c153475cb87a44/lib/dispatcher/client-h2.js#L945
This commit is contained in:
Tony
2026-05-06 03:12:57 +08:00
parent 2f3614b3fc
commit 1410f03e6d
+1 -1
View File
@@ -18,7 +18,7 @@ describe('httperror', () => {
const response = await app.request('/test/httperror');
expect(response.status).toBe(503);
const text = await response.text();
expect(text).toContain('FetchError: [GET] "https://httpbingo.org/status/404": 404 Not Found');
expect(text).toContain('FetchError: [GET] "https://httpbingo.org/status/404": 404');
}, 20000);
});