Skip to content

Commit 1d208b2

Browse files
committed
Force test exit, to avoid issues with left-over keep-alive sockets
This probably requires a proper fix in Mockttp - if the downstream socket gets closed, we should ensure we kill the upstream socket too. Seems that's not happening right now though, and it doesn't need to block anything else.
1 parent 607f921 commit 1d208b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build:src": "rm -rf lib && tsc -b --force",
2020
"build:release": "oclif-dev manifest && webpack && ts-node ./pack.ts",
2121
"prepack": "npm run build:src && oclif-dev manifest",
22-
"test": "TS_NODE_FILES=true mocha -r ts-node/register 'test/**/*.spec.ts'",
22+
"test": "TS_NODE_FILES=true mocha --exit -r ts-node/register 'test/**/*.spec.ts'",
2323
"test:release": "TEST_BUILT_TARBALL=1 npm run test"
2424
},
2525
"repository": "httptoolkit/httptoolkit-server",

0 commit comments

Comments
 (0)