fix: memory store #15363
Annotations
5 errors and 4 notices
Run tests:
test/cache-interceptor/cache-stores.js#L18
Error [ERR_TEST_FAILURE]: 'undefined' == 'boolean'
at async Promise.all (index 0) {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: 'undefined' == 'boolean'
at TestContext.<anonymous> (/Users/runner/work/undici/undici/test/cache-interceptor/cache-stores.js:18:7)
at Test.runInAsyncScope (node:async_hooks:206:9)
at Test.run (node:internal/test_runner/test:796:25)
at Test.start (node:internal/test_runner/test:703:17)
at node:internal/test_runner/test:1133:71
at node:internal/per_context/primordials:487:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:455:29)
at node:internal/per_context/primordials:487:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined',
expected: 'boolean',
operator: '=='
}
}
|
Run tests:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677123017,
deleteAt: 1731677143017,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
+ Buffer(1) [Uint8Array] [
+ 49
+ ],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 6,
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
- Buffer(1) [Uint8Array] [
- 51
- ]
- ],
staleAt: 1731677133017,
statusCode: 200,
statusMessage: ''
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677123017,
deleteAt: 1731677143017,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
+ Buffer(1) [Uint8Array] [
+ 49
+ ],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 6,
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
- Buffer(1) [Uint8Array] [
- 51
- ]
- ],
staleAt: 1731677133017,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/Users/runner/work/undici/undici/test/cache-interceptor/cache-stores.js:59:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:797:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:527:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677123017, staleAt: 1731677133017, deleteAt: 1731677143017, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677123017, staleAt: 1731677133017, deleteAt: 1731677143017, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Run tests:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677113023,
deleteAt: 1731677143023,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
+ Buffer(1) [Uint8Array] [
+ 49
+ ],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 10,
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
- Buffer(1) [Uint8Array] [
- 51
- ]
- ],
staleAt: 1731677123022,
statusCode: 200,
statusMessage: ''
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677113023,
deleteAt: 1731677143023,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
+ Buffer(1) [Uint8Array] [
+ 49
+ ],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 10,
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
- Buffer(1) [Uint8Array] [
- 51
- ]
- ],
staleAt: 1731677123022,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/Users/runner/work/undici/undici/test/cache-interceptor/cache-stores.js:128:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:797:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:527:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677113023, staleAt: 1731677123022, deleteAt: 1731677143023, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677113023, staleAt: 1731677123022, deleteAt: 1731677143023, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Run tests:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677123024,
deleteAt: 1731677143024,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
Buffer(1) [Uint8Array] [
+ 49
- 51
],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 10,
- ],
staleAt: 1731677133024,
...
'some-header': 'hello world'
}
}] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677123024,
deleteAt: 1731677143024,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
+ rawHeaders: [
- rawHeaders: [
- Buffer(1) [Uint8Array] [
- 49
- ],
- Buffer(1) [Uint8Array] [
- 50
- ],
Buffer(1) [Uint8Array] [
+ 49
- 51
],
+ Buffer(1) [Uint8Array] [
+ 50
+ ],
+ Buffer(1) [Uint8Array] [
+ 51
+ ]
+ ],
+ size: 10,
- ],
staleAt: 1731677133024,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/Users/runner/work/undici/undici/test/cache-interceptor/cache-stores.js:198:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:797:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:527:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677123024, staleAt: 1731677133024, deleteAt: 1731677143024, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677123024, staleAt: 1731677133024, deleteAt: 1731677143024, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Run tests
Process completed with exit code 1.
|
Run tests
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 39011.471ms
|
Run tests
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 2997.029ms
|
Run tests
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 119.828ms
|
Run tests
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 58.975ms
|
Loading