test: add cache testing suite #15394
Annotations
5 errors and 5 notices
Run tests:
test/interceptors/cache.js#L51
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'includes')] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'includes')
at canCacheResponse (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/Users/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/Users/runner/work/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
at Parser.execute (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests:
test/interceptors/cache.js#L158
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'includes')] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'includes')
at canCacheResponse (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/Users/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/Users/runner/work/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
at Parser.execute (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests:
test/interceptors/cache.js#L226
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'includes')] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'includes')
at canCacheResponse (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/Users/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/Users/runner/work/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
at Parser.execute (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests:
test/interceptors/cache.js#L380
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'includes')] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'includes')
at canCacheResponse (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/Users/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/Users/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/Users/runner/work/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
at Parser.execute (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/Users/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests
Process completed with exit code 1.
|
Run tests
Total Tests: 1030
Suites 📂: 78
Passed ✅: 1026
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 43116.768ms
|
Run tests
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3458.047ms
|
Run tests
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 195.831ms
|
Run tests
Total Tests: 25
Suites 📂: 4
Passed ✅: 25
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 79.848ms
|
Run tests
Total Tests: 118
Suites 📂: 1
Passed ✅: 114
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 8431.357ms
|
Loading