fix: memory store #15366
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:211:14)
at Test.run (node:internal/test_runner/test:934:25)
at Test.start (node:internal/test_runner/test:833:17)
at node:internal/test_runner/test:1318:71
at node:internal/per_context/primordials:483:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:451:29)
at node:internal/per_context/primordials:483: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: 1731677248229,
deleteAt: 1731677268229,
+ 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: 1731677258229,
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: 1731677248229,
deleteAt: 1731677268229,
+ 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: 1731677258229,
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:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677248229, staleAt: 1731677258229, deleteAt: 1731677268229, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677248229, staleAt: 1731677258229, deleteAt: 1731677268229, 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: 1731677238231,
deleteAt: 1731677268231,
+ 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: 1731677248230,
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: 1731677238231,
deleteAt: 1731677268231,
+ 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: 1731677248230,
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:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677238231, staleAt: 1731677248230, deleteAt: 1731677268231, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677238231, staleAt: 1731677248230, deleteAt: 1731677268231, 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: 1731677248233,
deleteAt: 1731677268233,
+ 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: 1731677258233,
...
'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: 1731677248233,
deleteAt: 1731677268233,
+ 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: 1731677258233,
...
'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:105:5)
at async Test.run (node:internal/test_runner/test:935:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:633:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677248233, staleAt: 1731677258233, deleteAt: 1731677268233, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677248233, staleAt: 1731677258233, deleteAt: 1731677268233, 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 🕐: 37330.533ms
|
Run tests
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 2874.794ms
|
Run tests
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 132.741ms
|
Run tests
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 57.852ms
|
Loading