Skip to content

chore: modernize tests #1

chore: modernize tests

chore: modernize tests #1

Triggered via pull request September 10, 2024 21:23
Status Failure
Total duration 50s
Artifacts

test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 4 warnings
Unhandled error: test/hostheader.spec.js#L149
Error: listen EADDRINUSE: address already in use :::54674 ❯ Server.setupListenHandle [as _listen2] node:net:1463:16 ❯ listenInCluster node:net:1511:12 ❯ Server.listen node:net:1599:7 ❯ test/hostheader.spec.js:149:12 ❯ testServer test/hostheader.spec.js:137:10 ❯ test/hostheader.spec.js:54:27 ❯ node_modules/@vitest/runner/dist/index.js:146:14 ❯ node_modules/@vitest/runner/dist/index.js:61:7 ❯ runTest node_modules/@vitest/runner/dist/index.js:960:17 ❯ processTicksAndRejections node:internal/process/task_queues:96:5 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runFiles node_modules/@vitest/runner/dist/index.js:1173:5 ❯ startTests node_modules/@vitest/runner/dist/index.js:1182:3 ❯ node_modules/vitest/dist/chunks/runBaseTests.CyvqmuC9.js:130:11 ❯ withEnv node_modules/vitest/dist/chunks/runBaseTests.CyvqmuC9.js:94:5 ❯ run node_modules/vitest/dist/chunks/runBaseTests.CyvqmuC9.js:116:3 ❯ runBaseTests node_modules/vitest/dist/chunks/base.CC5R_kgU.js:31:3 ❯ ForksBaseWorker.executeTests node_modules/vitest/dist/workers/forks.js:25:7 ❯ execute node_modules/vitest/dist/worker.js:115:5 ❯ onMessage node_modules/tinypool/dist/entry/process.js:55:20 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '::', port: 54674 } This error originated in "test/hostheader.spec.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "Should return 502 after route with no backend". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
test/hostheader.spec.js > Target with a hostname > Should have the host header passed to the target: test/hostheader.spec.js#L34
ReferenceError: fetch is not defined ❯ test/hostheader.spec.js:34:17
test/hostheader.spec.js > Target with a hostname > Should not have the host header passed to the target: test/hostheader.spec.js#L58
ReferenceError: fetch is not defined ❯ test/hostheader.spec.js:58:17
test/hostheader.spec.js > Target with a hostname > Should return 404 after route is unregister: test/hostheader.spec.js#L79
ReferenceError: fetch is not defined ❯ test/hostheader.spec.js:79:17
test/hostheader.spec.js > Target with a hostname > Should return 502 after route with no backend: test/hostheader.spec.js#L100
TypeError: Cannot read properties of undefined (reading 'code') ❯ test/hostheader.spec.js:100:22
test/onrequest.spec.js > onRequest hook > should be able to modify headers for a route: test/onrequest.spec.js#L52
ReferenceError: fetch is not defined ❯ test/onrequest.spec.js:52:9 ❯ invokeCheckFunc node_modules/run-verify/lib/index.js:339:20 ❯ tryCatcher node_modules/bluebird/js/release/util.js:16:23 ❯ Promise._settlePromiseFromHandler node_modules/bluebird/js/release/promise.js:547:31 ❯ Promise._settlePromise node_modules/bluebird/js/release/promise.js:604:18 ❯ Promise._settlePromise0 node_modules/bluebird/js/release/promise.js:649:10 ❯ Promise._settlePromises node_modules/bluebird/js/release/promise.js:729:18 ❯ _drainQueueStep node_modules/bluebird/js/release/async.js:93:12 ❯ _drainQueue node_modules/bluebird/js/release/async.js:86:9 ❯ Async._drainQueues node_modules/bluebird/js/release/async.js:102:5 ❯ Immediate.Async.drainQueues node_modules/bluebird/js/release/async.js:15:14
build (16.x)
Process completed with exit code 1.
test/hostheader.spec.js > Target with a hostname > Should return 502 after route with no backend: test/hostheader.spec.js#L100
AssertionError: expected 'UND_ERR_SOCKET' to deeply equal 'ECONNRESET' Expected: "ECONNRESET" Received: "UND_ERR_SOCKET" ❯ test/hostheader.spec.js:100:34
build (20.x)
Process completed with exit code 1.
build (18.x)
The job was canceled because "_20_x" failed.
build (18.x)
The operation was canceled.
build (16.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (16.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (20.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build (20.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/