From 1410f03e6dc98f0135cad0b458381179bdddec59 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 6 May 2026 03:12:57 +0800 Subject: [PATCH] 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 --- lib/errors/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/errors/index.test.ts b/lib/errors/index.test.ts index 8f83e711c..9c102b973 100644 --- a/lib/errors/index.test.ts +++ b/lib/errors/index.test.ts @@ -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); });