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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user