fix: memory store #15366
nodejs.yml
on: pull_request
Matrix: test-without-intl
Matrix: test
dependency-review
10s
Lint
39s
Fuzzing
3m 38s
Test TypeScript types
41s
automerge
0s
Annotations
88 errors and 69 notices
Test TypeScript types
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677237612,
deleteAt: 1731677257612,
+ 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: 1731677247612,
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: 1731677237612,
deleteAt: 1731677257612,
+ 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: 1731677247612,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677237612, staleAt: 1731677247612, deleteAt: 1731677257612, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677237612, staleAt: 1731677247612, deleteAt: 1731677257612, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677227617,
deleteAt: 1731677257617,
+ 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: 1731677237616,
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: 1731677227617,
deleteAt: 1731677257617,
+ 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: 1731677237616,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677227617, staleAt: 1731677237616, deleteAt: 1731677257617, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677227617, staleAt: 1731677237616, deleteAt: 1731677257617, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677237621,
deleteAt: 1731677257621,
+ 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: 1731677247621,
...
'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: 1731677237621,
deleteAt: 1731677257621,
+ 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: 1731677247621,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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: 1731677237621, staleAt: 1731677247621, deleteAt: 1731677257621, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677237621, staleAt: 1731677247621, deleteAt: 1731677257621, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (20, ubuntu-latest) / Test with Node.js 20 on ubuntu-latest
Process completed with exit code 1.
|
matches interface:
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> (/home/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:639:25)
at Test.start (node:internal/test_runner/test:550:17)
at node:internal/test_runner/test:962:71
at node:internal/per_context/primordials:488:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:456:29)
at node:internal/per_context/primordials:488:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined',
expected: 'boolean',
operator: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677242094,
deleteAt: 1731677262094,
+ 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: 1731677252094,
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: 1731677242094,
deleteAt: 1731677262094,
+ 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: 1731677252094,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677242094, staleAt: 1731677252094, deleteAt: 1731677262094, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677242094, staleAt: 1731677252094, deleteAt: 1731677262094, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677232100,
deleteAt: 1731677262100,
+ 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: 1731677242099,
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: 1731677232100,
deleteAt: 1731677262100,
+ 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: 1731677242099,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677232100, staleAt: 1731677242099, deleteAt: 1731677262100, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677232100, staleAt: 1731677242099, deleteAt: 1731677262100, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677242104,
deleteAt: 1731677262104,
+ 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: 1731677252104,
...
'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: 1731677242104,
deleteAt: 1731677262104,
+ 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: 1731677252104,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677242104, staleAt: 1731677252104, deleteAt: 1731677262104, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677242104, staleAt: 1731677252104, deleteAt: 1731677262104, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (21, ubuntu-latest) / Test with Node.js 21 on ubuntu-latest
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677246484,
deleteAt: 1731677266484,
+ 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: 1731677256484,
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: 1731677246484,
deleteAt: 1731677266484,
+ 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: 1731677256484,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677246484, staleAt: 1731677256484, deleteAt: 1731677266484, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677246484, staleAt: 1731677256484, deleteAt: 1731677266484, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677236489,
deleteAt: 1731677266489,
+ 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: 1731677246488,
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: 1731677236489,
deleteAt: 1731677266489,
+ 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: 1731677246488,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677236489, staleAt: 1731677246488, deleteAt: 1731677266489, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677236489, staleAt: 1731677246488, deleteAt: 1731677266489, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677246491,
deleteAt: 1731677266492,
+ 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: 1731677256491,
...
'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: 1731677246491,
deleteAt: 1731677266492,
+ 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: 1731677256491,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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: 1731677246491, staleAt: 1731677256491, deleteAt: 1731677266492, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677246491, staleAt: 1731677256491, deleteAt: 1731677266492, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (22, ubuntu-latest) / Test with Node.js 22 on ubuntu-latest
Process completed with exit code 1.
|
matches interface:
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: '=='
}
}
|
basic functionality:
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'
}
}
|
returns stale response if possible:
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'
}
}
|
respects vary directives:
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'
}
}
|
test (22, macos-latest) / Test with Node.js 22 on macos-latest
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677247102,
deleteAt: 1731677267102,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677257102,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677247102,
deleteAt: 1731677267102,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677257102,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677247102, staleAt: 1731677257102, deleteAt: 1731677267102, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677247102, staleAt: 1731677257102, deleteAt: 1731677267102, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677237107,
deleteAt: 1731677267107,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677247106,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677237107,
deleteAt: 1731677267107,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677247106,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677237107, staleAt: 1731677247106, deleteAt: 1731677267107, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677237107, staleAt: 1731677247106, deleteAt: 1731677267107, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677247111,
deleteAt: 1731677267111,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677257111,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677247111,
deleteAt: 1731677267111,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677257111,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
at TestContext.<anonymous> (/home/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: 1731677247111, staleAt: 1731677257111, deleteAt: 1731677267111, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677247111, staleAt: 1731677257111, deleteAt: 1731677267111, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (23, ubuntu-latest) / Test with Node.js 23 on ubuntu-latest
Process completed with exit code 1.
|
matches interface:
test/cache-interceptor/cache-stores.js#L18
Error [ERR_TEST_FAILURE]: 'undefined' == 'boolean'
at async Promise.all (index 0) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: 'undefined' == 'boolean'
at TestContext.<anonymous> (/home/runner/work/undici/undici/test/cache-interceptor/cache-stores.js:18:7)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at Test.start (node:internal/test_runner/test:542:17)
at node:internal/test_runner/test:946: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: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677249576,
deleteAt: 1731677269576,
+ 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: 1731677259576,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677249576,
deleteAt: 1731677269576,
+ 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: 1731677259576,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677249576, staleAt: 1731677259576, deleteAt: 1731677269576, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677249576, staleAt: 1731677259576, deleteAt: 1731677269576, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677239582,
deleteAt: 1731677269582,
+ 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: 1731677249581,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677239582,
deleteAt: 1731677269582,
+ 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: 1731677249581,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677239582, staleAt: 1731677249581, deleteAt: 1731677269582, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677239582, staleAt: 1731677249581, deleteAt: 1731677269582, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677249585,
deleteAt: 1731677269585,
+ 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: 1731677259585,
...
'some-header': 'hello world'
}
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677249585,
deleteAt: 1731677269585,
+ 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: 1731677259585,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677249585, staleAt: 1731677259585, deleteAt: 1731677269585, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677249585, staleAt: 1731677259585, deleteAt: 1731677269585, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
test (18, ubuntu-latest) / Test with Node.js 18 on ubuntu-latest
Process completed with exit code 1.
|
matches interface:
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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677257315,
deleteAt: 1731677277315,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677267315,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677257315,
deleteAt: 1731677277315,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677267315,
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: 1731677257315, staleAt: 1731677267315, deleteAt: 1731677277315, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677257315, staleAt: 1731677267315, deleteAt: 1731677277315, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677247317,
deleteAt: 1731677277317,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677257316,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677247317,
deleteAt: 1731677277317,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677257316,
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: 1731677247317, staleAt: 1731677257316, deleteAt: 1731677277317, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677247317, staleAt: 1731677257316, deleteAt: 1731677277317, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677257319,
deleteAt: 1731677277319,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677267319,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677257319,
deleteAt: 1731677277319,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677267319,
statusCode: 200,
statusMessage: '',
vary: {
'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: 1731677257319, staleAt: 1731677267319, deleteAt: 1731677277319, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677257319, staleAt: 1731677267319, deleteAt: 1731677277319, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (23, macos-latest) / Test with Node.js 23 on macos-latest
Process completed with exit code 1.
|
matches interface:
test/cache-interceptor/cache-stores.js#L18
Error [ERR_TEST_FAILURE]: 'undefined' == 'boolean'
at async Promise.all (index 0) {
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:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at Test.start (node:internal/test_runner/test:542:17)
at node:internal/test_runner/test:946: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: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677265543,
deleteAt: 1731677285543,
+ 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: 1731677275543,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677265543,
deleteAt: 1731677285543,
+ 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: 1731677275543,
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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677265543, staleAt: 1731677275543, deleteAt: 1731677285543, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677265543, staleAt: 1731677275543, deleteAt: 1731677285543, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677255547,
deleteAt: 1731677285547,
+ 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: 1731677265546,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677255547,
deleteAt: 1731677285547,
+ 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: 1731677265546,
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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677255547, staleAt: 1731677265546, deleteAt: 1731677285547, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677255547, staleAt: 1731677265546, deleteAt: 1731677285547, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677265550,
deleteAt: 1731677285550,
+ 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: 1731677275550,
...
'some-header': 'hello world'
}
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677265550,
deleteAt: 1731677285550,
+ 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: 1731677275550,
...
'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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677265550, staleAt: 1731677275550, deleteAt: 1731677285550, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677265550, staleAt: 1731677275550, deleteAt: 1731677285550, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
test (18, macos-latest) / Test with Node.js 18 on macos-latest
Process completed with exit code 1.
|
matches interface:
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:639:25)
at Test.start (node:internal/test_runner/test:550:17)
at node:internal/test_runner/test:962:71
at node:internal/per_context/primordials:488:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:456:29)
at node:internal/per_context/primordials:488:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined',
expected: 'boolean',
operator: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677268961,
deleteAt: 1731677288961,
+ 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: 1731677278961,
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: 1731677268961,
deleteAt: 1731677288961,
+ 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: 1731677278961,
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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677268961, staleAt: 1731677278961, deleteAt: 1731677288961, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677268961, staleAt: 1731677278961, deleteAt: 1731677288961, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677258966,
deleteAt: 1731677288966,
+ 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: 1731677268965,
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: 1731677258966,
deleteAt: 1731677288966,
+ 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: 1731677268965,
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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677258966, staleAt: 1731677268965, deleteAt: 1731677288966, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677258966, staleAt: 1731677268965, deleteAt: 1731677288966, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677268968,
deleteAt: 1731677288968,
+ 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: 1731677278968,
...
'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: 1731677268968,
deleteAt: 1731677288968,
+ 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: 1731677278968,
...
'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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677268968, staleAt: 1731677278968, deleteAt: 1731677288968, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677268968, staleAt: 1731677278968, deleteAt: 1731677288968, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (21, macos-latest) / Test with Node.js 21 on macos-latest
Process completed with exit code 1.
|
test/issue-3356.js:
test/issue-3356.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 30000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 30000ms' }
|
test (20, macos-latest) / Test with Node.js 20 on macos-latest
Process completed with exit code 1.
|
matches interface:
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> (D:\a\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: '=='
}
}
|
basic functionality:
test\cache-interceptor\cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677287453,
deleteAt: 1731677307453,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677297453,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677287453,
deleteAt: 1731677307453,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677297453,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677287453, staleAt: 1731677297453, deleteAt: 1731677307453, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677287453, staleAt: 1731677297453, deleteAt: 1731677307453, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test\cache-interceptor\cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677277458,
deleteAt: 1731677307458,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677287457,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677277458,
deleteAt: 1731677307458,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677287457,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677277458, staleAt: 1731677287457, deleteAt: 1731677307458, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677277458, staleAt: 1731677287457, deleteAt: 1731677307458, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test\cache-interceptor\cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677287462,
deleteAt: 1731677307462,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677297462,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677287462,
deleteAt: 1731677307462,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677297462,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
at TestContext.<anonymous> (D:\a\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: 1731677287462, staleAt: 1731677297462, deleteAt: 1731677307462, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677287462, staleAt: 1731677297462, deleteAt: 1731677307462, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (23, windows-latest) / Test with Node.js 23 on windows-latest
Process completed with exit code 1.
|
matches interface:
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> (D:\a\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:639:25)
at Test.start (node:internal/test_runner/test:550:17)
at node:internal/test_runner/test:962:71
at node:internal/per_context/primordials:488:82
at new Promise (<anonymous>)
at new SafePromise (node:internal/per_context/primordials:456:29)
at node:internal/per_context/primordials:488:9
at Array.map (<anonymous>) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined',
expected: 'boolean',
operator: '=='
}
}
|
basic functionality:
test\cache-interceptor\cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677296228,
deleteAt: 1731677316228,
+ 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: 1731677306228,
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: 1731677296228,
deleteAt: 1731677316228,
+ 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: 1731677306228,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677296228, staleAt: 1731677306228, deleteAt: 1731677316228, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677296228, staleAt: 1731677306228, deleteAt: 1731677316228, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test\cache-interceptor\cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677286234,
deleteAt: 1731677316234,
+ 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: 1731677296233,
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: 1731677286234,
deleteAt: 1731677316234,
+ 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: 1731677296233,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677286234, staleAt: 1731677296233, deleteAt: 1731677316234, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677286234, staleAt: 1731677296233, deleteAt: 1731677316234, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test\cache-interceptor\cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677296238,
deleteAt: 1731677316238,
+ 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: 1731677306238,
...
'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: 1731677296238,
deleteAt: 1731677316238,
+ 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: 1731677306238,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (D:\a\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:640:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:382:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677296238, staleAt: 1731677306238, deleteAt: 1731677316238, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677296238, staleAt: 1731677306238, deleteAt: 1731677316238, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (21, windows-latest) / Test with Node.js 21 on windows-latest
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677294202,
deleteAt: 1731677314202,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677304202,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'asd',
'123'
],
cachedAt: 1731677294202,
deleteAt: 1731677314202,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 6,
staleAt: 1731677304202,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677294202, staleAt: 1731677304202, deleteAt: 1731677314202, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677294202, staleAt: 1731677304202, deleteAt: 1731677314202, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677284207,
deleteAt: 1731677314207,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677294206,
statusCode: 200,
statusMessage: ''
}
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677284207,
deleteAt: 1731677314207,
+ headers: {},
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677294206,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677284207, staleAt: 1731677294206, deleteAt: 1731677314207, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677284207, staleAt: 1731677294206, deleteAt: 1731677314207, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677294210,
deleteAt: 1731677314210,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677304210,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
... Skipped lines
{
body: [
'part1',
'part2'
],
cachedAt: 1731677294210,
deleteAt: 1731677314210,
+ headers: {
+ 'some-header': 'hello world'
+ },
+ method: 'GET',
+ origin: 'localhost',
+ path: '/',
rawHeaders: [
Buffer(1) [Uint8Array] [
49
],
Buffer(1) [Uint8Array] [
...
],
+ size: 10,
staleAt: 1731677304210,
statusCode: 200,
statusMessage: '',
vary: {
'some-header': 'hello world'
at TestContext.<anonymous> (/home/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: 1731677294210, staleAt: 1731677304210, deleteAt: 1731677314210, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677294210, staleAt: 1731677304210, deleteAt: 1731677314210, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Test with Node.js 23 compiled --without-intl
Process completed with exit code 1.
|
matches interface:
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> (D:\a\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: '=='
}
}
|
basic functionality:
test\cache-interceptor\cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301681,
deleteAt: 1731677321681,
+ 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: 1731677311681,
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: 1731677301681,
deleteAt: 1731677321681,
+ 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: 1731677311681,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677301681, staleAt: 1731677311681, deleteAt: 1731677321681, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677301681, staleAt: 1731677311681, deleteAt: 1731677321681, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test\cache-interceptor\cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677291688,
deleteAt: 1731677321688,
+ 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: 1731677301687,
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: 1731677291688,
deleteAt: 1731677321688,
+ 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: 1731677301687,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677291688, staleAt: 1731677301687, deleteAt: 1731677321688, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677291688, staleAt: 1731677301687, deleteAt: 1731677321688, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test\cache-interceptor\cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301692,
deleteAt: 1731677321692,
+ 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: 1731677311692,
...
'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: 1731677301692,
deleteAt: 1731677321692,
+ 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: 1731677311692,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (D:\a\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: 1731677301692, staleAt: 1731677311692, deleteAt: 1731677321692, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677301692, staleAt: 1731677311692, deleteAt: 1731677321692, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (20, windows-latest) / Test with Node.js 20 on windows-latest
Process completed with exit code 1.
|
matches interface:
test\cache-interceptor\cache-stores.js#L18
Error [ERR_TEST_FAILURE]: 'undefined' == 'boolean'
at async Promise.all (index 0) {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: 'undefined' == 'boolean'
at TestContext.<anonymous> (D:\a\undici\undici\test\cache-interceptor\cache-stores.js:18:7)
at Test.runInAsyncScope (node:async_hooks:203:9)
at Test.run (node:internal/test_runner/test:631:25)
at Test.start (node:internal/test_runner/test:542:17)
at node:internal/test_runner/test:946: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: '=='
},
code: 'ERR_TEST_FAILURE'
}
|
basic functionality:
test\cache-interceptor\cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677303875,
deleteAt: 1731677323875,
+ 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: 1731677313875,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677303875,
deleteAt: 1731677323875,
+ 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: 1731677313875,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677303875, staleAt: 1731677313875, deleteAt: 1731677323875, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677303875, staleAt: 1731677313875, deleteAt: 1731677323875, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
returns stale response if possible:
test\cache-interceptor\cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677293884,
deleteAt: 1731677323884,
+ 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: 1731677303883,
statusCode: 200,
statusMessage: ''
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677293884,
deleteAt: 1731677323884,
+ 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: 1731677303883,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: {}, statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677293884, staleAt: 1731677303883, deleteAt: 1731677323884, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677293884, staleAt: 1731677303883, deleteAt: 1731677323884, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
respects vary directives:
test\cache-interceptor\cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677303886,
deleteAt: 1731677323886,
+ 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: 1731677313886,
...
'some-header': 'hello world'
}
}] {
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677303886,
deleteAt: 1731677323886,
+ 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: 1731677313886,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (D:\a\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:632:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:374:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: { origin: 'localhost', path: '/', method: 'GET', headers: [Object], statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677303886, staleAt: 1731677313886, deleteAt: 1731677323886, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677303886, staleAt: 1731677313886, deleteAt: 1731677323886, body: [Array] },
operator: 'deepStrictEqual'
},
code: 'ERR_TEST_FAILURE'
}
|
test (18, windows-latest) / Test with Node.js 18 on windows-latest
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301433,
deleteAt: 1731677321433,
+ 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: 1731677311433,
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: 1731677301433,
deleteAt: 1731677321433,
+ 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: 1731677311433,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677301433, staleAt: 1731677311433, deleteAt: 1731677321433, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677301433, staleAt: 1731677311433, deleteAt: 1731677321433, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677291438,
deleteAt: 1731677321438,
+ 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: 1731677301437,
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: 1731677291438,
deleteAt: 1731677321438,
+ 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: 1731677301437,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677291438, staleAt: 1731677301437, deleteAt: 1731677321438, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677291438, staleAt: 1731677301437, deleteAt: 1731677321438, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301441,
deleteAt: 1731677321441,
+ 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: 1731677311441,
...
'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: 1731677301441,
deleteAt: 1731677321441,
+ 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: 1731677311441,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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: 1731677301441, staleAt: 1731677311441, deleteAt: 1731677321441, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677301441, staleAt: 1731677311441, deleteAt: 1731677321441, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Test with Node.js 22 compiled --without-intl
Process completed with exit code 1.
|
matches interface:
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> (/home/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: '=='
}
}
|
basic functionality:
test/cache-interceptor/cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301713,
deleteAt: 1731677321713,
+ 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: 1731677311713,
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: 1731677301713,
deleteAt: 1731677321713,
+ 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: 1731677311713,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677301713, staleAt: 1731677311713, deleteAt: 1731677321713, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677301713, staleAt: 1731677311713, deleteAt: 1731677321713, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test/cache-interceptor/cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677291718,
deleteAt: 1731677321718,
+ 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: 1731677301717,
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: 1731677291718,
deleteAt: 1731677321718,
+ 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: 1731677301717,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (/home/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: 1731677291718, staleAt: 1731677301717, deleteAt: 1731677321718, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677291718, staleAt: 1731677301717, deleteAt: 1731677321718, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test/cache-interceptor/cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677301722,
deleteAt: 1731677321722,
+ 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: 1731677311722,
...
'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: 1731677301722,
deleteAt: 1731677321722,
+ 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: 1731677311722,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (/home/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: 1731677301722, staleAt: 1731677311722, deleteAt: 1731677321722, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677301722, staleAt: 1731677311722, deleteAt: 1731677321722, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
Test with Node.js 20 compiled --without-intl
Process completed with exit code 1.
|
matches interface:
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> (D:\a\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: '=='
}
}
|
basic functionality:
test\cache-interceptor\cache-stores.js#L59
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677341306,
deleteAt: 1731677361306,
+ 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: 1731677351306,
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: 1731677341306,
deleteAt: 1731677361306,
+ 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: 1731677351306,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677341306, staleAt: 1731677351306, deleteAt: 1731677361306, size: 6, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677341306, staleAt: 1731677351306, deleteAt: 1731677361306, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
returns stale response if possible:
test\cache-interceptor\cache-stores.js#L128
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677331313,
deleteAt: 1731677361313,
+ 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: 1731677341312,
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: 1731677331313,
deleteAt: 1731677361313,
+ 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: 1731677341312,
statusCode: 200,
statusMessage: ''
}
at TestContext.<anonymous> (D:\a\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: 1731677331313, staleAt: 1731677341312, deleteAt: 1731677361313, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], cachedAt: 1731677331313, staleAt: 1731677341312, deleteAt: 1731677361313, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
respects vary directives:
test\cache-interceptor\cache-stores.js#L198
[Error [ERR_TEST_FAILURE]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
{
body: [
...
cachedAt: 1731677341316,
deleteAt: 1731677361316,
+ 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: 1731677351316,
...
'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: 1731677341316,
deleteAt: 1731677361316,
+ 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: 1731677351316,
...
'some-header': 'hello world'
}
}
at TestContext.<anonymous> (D:\a\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: 1731677341316, staleAt: 1731677351316, deleteAt: 1731677361316, size: 10, body: [Array] },
expected: { statusCode: 200, statusMessage: '', rawHeaders: [Array], vary: [Object], cachedAt: 1731677341316, staleAt: 1731677351316, deleteAt: 1731677361316, body: [Array] },
operator: 'deepStrictEqual'
}
}
|
test (22, windows-latest) / Test with Node.js 22 on windows-latest
Process completed with exit code 1.
|
test (20, ubuntu-latest) / Test with Node.js 20 on ubuntu-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 28656.903ms
|
test (20, ubuntu-latest) / Test with Node.js 20 on ubuntu-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3066.651ms
|
test (20, ubuntu-latest) / Test with Node.js 20 on ubuntu-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 107.827ms
|
test (20, ubuntu-latest) / Test with Node.js 20 on ubuntu-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 76.752ms
|
test (21, ubuntu-latest) / Test with Node.js 21 on ubuntu-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 28250.089ms
|
test (21, ubuntu-latest) / Test with Node.js 21 on ubuntu-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3007.524ms
|
test (21, ubuntu-latest) / Test with Node.js 21 on ubuntu-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 110.136ms
|
test (21, ubuntu-latest) / Test with Node.js 21 on ubuntu-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 72.580ms
|
test (22, ubuntu-latest) / Test with Node.js 22 on ubuntu-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 31190.681ms
|
test (22, ubuntu-latest) / Test with Node.js 22 on ubuntu-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3144.532ms
|
test (22, ubuntu-latest) / Test with Node.js 22 on ubuntu-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 142.094ms
|
test (22, ubuntu-latest) / Test with Node.js 22 on ubuntu-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 87.699ms
|
test (22, macos-latest) / Test with Node.js 22 on macos-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 37330.533ms
|
test (22, macos-latest) / Test with Node.js 22 on macos-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 2874.794ms
|
test (22, macos-latest) / Test with Node.js 22 on macos-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 132.741ms
|
test (22, macos-latest) / Test with Node.js 22 on macos-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 57.852ms
|
test (23, ubuntu-latest) / Test with Node.js 23 on ubuntu-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 28193.159ms
|
test (23, ubuntu-latest) / Test with Node.js 23 on ubuntu-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3035.016ms
|
test (23, ubuntu-latest) / Test with Node.js 23 on ubuntu-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 108.063ms
|
test (23, ubuntu-latest) / Test with Node.js 23 on ubuntu-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 79.068ms
|
test (18, ubuntu-latest) / Test with Node.js 18 on ubuntu-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 35580.939ms
|
test (18, ubuntu-latest) / Test with Node.js 18 on ubuntu-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3112.828ms
|
test (18, ubuntu-latest) / Test with Node.js 18 on ubuntu-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 127.010ms
|
test (18, ubuntu-latest) / Test with Node.js 18 on ubuntu-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 91.176ms
|
test (23, macos-latest) / Test with Node.js 23 on macos-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 38095.549ms
|
test (23, macos-latest) / Test with Node.js 23 on macos-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3008.082ms
|
test (23, macos-latest) / Test with Node.js 23 on macos-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 174.486ms
|
test (23, macos-latest) / Test with Node.js 23 on macos-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 69.857ms
|
test (18, macos-latest) / Test with Node.js 18 on macos-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 46194.789ms
|
test (18, macos-latest) / Test with Node.js 18 on macos-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 2936.994ms
|
test (18, macos-latest) / Test with Node.js 18 on macos-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 146.035ms
|
test (18, macos-latest) / Test with Node.js 18 on macos-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 67.888ms
|
test (21, macos-latest) / Test with Node.js 21 on macos-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 39169.266ms
|
test (21, macos-latest) / Test with Node.js 21 on macos-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3091.711ms
|
test (21, macos-latest) / Test with Node.js 21 on macos-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 203.290ms
|
test (21, macos-latest) / Test with Node.js 21 on macos-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 82.764ms
|
test (20, macos-latest) / Test with Node.js 20 on macos-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1023
Failed ❌: 0
Canceled 🚫: 1
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 54873.132ms
|
test (23, windows-latest) / Test with Node.js 23 on windows-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 34196.256ms
|
test (23, windows-latest) / Test with Node.js 23 on windows-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3278.869ms
|
test (23, windows-latest) / Test with Node.js 23 on windows-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 153.481ms
|
test (23, windows-latest) / Test with Node.js 23 on windows-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 96.043ms
|
test (21, windows-latest) / Test with Node.js 21 on windows-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 32062.411ms
|
test (21, windows-latest) / Test with Node.js 21 on windows-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3264.824ms
|
test (21, windows-latest) / Test with Node.js 21 on windows-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 155.311ms
|
test (21, windows-latest) / Test with Node.js 21 on windows-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 98.732ms
|
Test with Node.js 23 compiled --without-intl
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 28260.628ms
|
Test with Node.js 23 compiled --without-intl
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3029.809ms
|
Test with Node.js 23 compiled --without-intl
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 105.870ms
|
Test with Node.js 23 compiled --without-intl
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 74.079ms
|
test (20, windows-latest) / Test with Node.js 20 on windows-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 34542.466ms
|
test (20, windows-latest) / Test with Node.js 20 on windows-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3522.552ms
|
test (20, windows-latest) / Test with Node.js 20 on windows-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 236.055ms
|
test (20, windows-latest) / Test with Node.js 20 on windows-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 152.609ms
|
test (18, windows-latest) / Test with Node.js 18 on windows-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1025
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 4
Todo 📝: 0
Duration 🕐: 39981.378ms
|
test (18, windows-latest) / Test with Node.js 18 on windows-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3541.334ms
|
test (18, windows-latest) / Test with Node.js 18 on windows-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 263.847ms
|
test (18, windows-latest) / Test with Node.js 18 on windows-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 181.807ms
|
Test with Node.js 22 compiled --without-intl
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 28039.347ms
|
Test with Node.js 22 compiled --without-intl
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3037.926ms
|
Test with Node.js 22 compiled --without-intl
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 107.212ms
|
Test with Node.js 22 compiled --without-intl
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 68.475ms
|
Test with Node.js 20 compiled --without-intl
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 28968.800ms
|
Test with Node.js 20 compiled --without-intl
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3076.086ms
|
Test with Node.js 20 compiled --without-intl
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 114.699ms
|
Test with Node.js 20 compiled --without-intl
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 76.600ms
|
test (22, windows-latest) / Test with Node.js 22 on windows-latest
Total Tests: 1029
Suites 📂: 78
Passed ✅: 1024
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 5
Todo 📝: 0
Duration 🕐: 41608.931ms
|
test (22, windows-latest) / Test with Node.js 22 on windows-latest
Total Tests: 189
Suites 📂: 6
Passed ✅: 176
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 13
Todo 📝: 0
Duration 🕐: 3464.581ms
|
test (22, windows-latest) / Test with Node.js 22 on windows-latest
Total Tests: 3
Suites 📂: 0
Passed ✅: 3
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 457.782ms
|
test (22, windows-latest) / Test with Node.js 22 on windows-latest
Total Tests: 17
Suites 📂: 3
Passed ✅: 13
Failed ❌: 4
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 165.805ms
|