fix: we can redirect disturbed request body if it's not going to be used #15509
Annotations
5 errors and 1 notice
Run tests:
test\redirect-stream.js#L284
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:60953/300/2'
- 'http://localhost:60953/300/3'
^] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:60953/300/2'
- 'http://localhost:60953/300/3'
^
at res.<computed> [as strictEqual] (D:\a\undici\undici\node_modules\@matteo.collina\tspl\tspl.js:52:35)
at D:\a\undici\undici\test\redirect-stream.js:284:9
at StreamHandler.runInAsyncScope (node:async_hooks:203:9)
at StreamHandler.onHeaders (D:\a\undici\undici\lib\api\api-stream.js:99:22)
at RedirectHandler.onHeaders (D:\a\undici\undici\lib\handler\redirect-handler.js:143:27)
at Request.onHeaders (D:\a\undici\undici\lib\core\request.js:245:29)
at Parser.onHeadersComplete (D:\a\undici\undici\lib\dispatcher\client-h1.js:612:27)
at wasm_on_headers_complete (D:\a\undici\undici\lib\dispatcher\client-h1.js:141:30)
at wasm://wasm/00032d9a:wasm-function[10]:0x56f
at wasm://wasm/00032d9a:wasm-function[20]:0x7d57 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'http://localhost:60953/300/2',
expected: 'http://localhost:60953/300/3',
operator: 'strictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
Run tests:
test\redirect-stream.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 30000ms] { failureType: 'testTimeoutFailure', cause: 'test timed out after 30000ms', code: 'ERR_TEST_FAILURE' }
|
Run tests:
test\redirect-request.js#L401
[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:61075/300/2'
- 'http://localhost:61075/300/3'
^] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'http://localhost:61075/300/2'
- 'http://localhost:61075/300/3'
^
at res.<computed> [as strictEqual] (D:\a\undici\undici\node_modules\@matteo.collina\tspl\tspl.js:52:35)
at TestContext.<anonymous> (D:\a\undici\undici\test\redirect-request.js:401:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:632:9)
at async Test.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'http://localhost:61075/300/2',
expected: 'http://localhost:61075/300/3',
operator: 'strictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
Run tests:
test\redirect-request.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 30000ms] { failureType: 'testTimeoutFailure', cause: 'test timed out after 30000ms', code: 'ERR_TEST_FAILURE' }
|
Run tests
Process completed with exit code 1.
|
Run tests
Total Tests: 975
Suites 📂: 78
Passed ✅: 967
Failed ❌: 2
Canceled 🚫: 2
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 57117.377ms
|
Loading