test: add cache testing suite #15394
Annotations
5 errors and 5 notices
Run tests with coverage:
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 (/home/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/home/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/home/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/home/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 (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests with coverage:
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 (/home/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/home/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/home/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/home/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 (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests with coverage:
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 (/home/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/home/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/home/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/home/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 (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests with coverage:
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 (/home/runner/work/undici/undici/lib/handler/cache-handler.js:256:20)
at CacheHandler.onHeaders (/home/runner/work/undici/undici/lib/handler/cache-handler.js:122:10)
at Request.onHeaders (/home/runner/work/undici/undici/lib/core/request.js:245:29)
at Parser.onHeadersComplete (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:612:27)
at wasm_on_headers_complete (/home/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 (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:332:22)
at Parser.readMore (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:296:12)
at Socket.onHttpSocketReadable (/home/runner/work/undici/undici/lib/dispatcher/client-h1.js:879:18)
}
|
Run tests with coverage
Process completed with exit code 1.
|
Run tests with coverage
Total Tests: 1030
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 31358.640ms
|
Run tests with coverage
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3363.284ms
|
Run tests with coverage
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 174.723ms
|
Run tests with coverage
Total Tests: 25
Suites 📂: 4
Passed ✅: 25
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 87.527ms
|
Run tests with coverage
Total Tests: 118
Suites 📂: 1
Passed ✅: 114
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 6367.698ms
|
Loading