fix: max-age=0 and no-cache must be considered "immediately stale" #303
Annotations
2 errors and 3 notices
|
Test fetch
Process completed with exit code 1.
|
|
Test fetch:
test/fetch/long-lived-abort-controller.js#L36
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ MaxListenersExceededWarning: Possible EventTarget memory leak detected. 1501 abort listeners added to [AbortSignal]. MaxListeners is 1500. Use events.setMaxListeners() to increase limit
+ at [kNewListener] (node:internal/event_target:562:17)
+ at [kNewListener] (node:internal/abort_controller:331:24)
+ at AbortSignal.addEventListener (node:internal/event_target:686:23)
+ at Object.addAbortListener (/Users/runner/work/undici/undici/lib/core/util.js:662:12)
+ at new Request (/Users/runner/work/undici/undici/lib/web/fetch/request.js:439:14)
+ at fetch (/Users/runner/work/undici/undici/lib/web/fetch/index.js:144:21)
+ at fetch (/Users/runner/work/undici/undici/index.js:122:10)
+ at TestContext.<anonymous> (/Users/runner/work/undici/undici/test/fetch/long-lived-abort-controller.js:36:23)
+ at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async Test.run (node:internal/test_runner/test:1054:7) {
+ count: 1501,
+ target: AbortSignal {
+ [Symbol(events.maxEventTargetListeners)]: 1500,
+ [Symbol(events.maxEventTargetListenersWarned)]: true,
+ [Symbol(kAborted)]: false,
+ [Symbol(kComposite)]: false,
+ [Symbol(kEvents)]: SafeMap(1) [Map] {
+ 'abort' => <ref *360> {
+ next: <ref *359> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *358> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *357> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *356> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *355> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *354> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *353> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *352> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *351> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *350> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *349> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *348> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *347> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+ next: <ref *346> Listener {
+ callback: [Function: abort],
+ flags: 1,
+ listener: [Function: abort],
+
|
|
Test fetch
Total Tests: 409
Suites 📂: 21
Passed ✅: 408
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 29450.386ms
|
|
Test node-test
Total Tests: 213
Suites 📂: 3
Passed ✅: 213
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 5267.164ms
|
|
Test unit
Total Tests: 1188
Suites 📂: 122
Passed ✅: 1186
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 2
Todo 📝: 0
Duration 🕐: 57626.698ms
|
Loading