Skip to content

Commit

Permalink
concurrency to 1
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Nov 25, 2024
1 parent 22e4841 commit 14d818f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An Undici interceptor that routes requests over a worker thread",
"main": "index.js",
"scripts": {
"test": "eslint && borp --coverage --check-coverage"
"test": "eslint && borp --coverage --check-coverage --concurrency=1"
},
"keywords": [
"undici",
Expand Down
2 changes: 1 addition & 1 deletion test/service-restarted.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test('service restart with network / 1', async (t) => {
}
})

test.only('service restart with network / 2', async (t) => {
test('service restart with network / 2', async (t) => {

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (18.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:517:28) { failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' }, code: 'ERR_TEST_FAILURE' }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (20.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:519:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (22.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (23.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:513:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (18.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:517:28) { failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' }, code: 'ERR_TEST_FAILURE' }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (20.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:519:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (22.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }

Check failure on line 77 in test/service-restarted.test.js

View workflow job for this annotation

GitHub Actions / test (23.x)

service restart with network / 2

Error [ERR_TEST_FAILURE]: dispatchFunc should be a function at process.emit (node:events:513:28) { code: 'ERR_TEST_FAILURE', failureType: 'uncaughtException', cause: AssertionError [ERR_ASSERTION]: dispatchFunc should be a function at doInject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:35:5) at inject (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/node_modules/light-my-request/index.js:15:12) at /home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:326:11 at Hooks.onServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:15:35) at Hooks.fireOnServerRequest (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/lib/hooks.js:39:17) at MessagePort.onMessage (/home/runner/work/undici-thread-interceptor/undici-thread-interceptor/index.js:278:25) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) { generatedMessage: false, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==' } }
const composer = new Worker(join(__dirname, 'fixtures', 'composer.js'), {
workerData: { name: 'composer' },
})
Expand Down

0 comments on commit 14d818f

Please sign in to comment.