Skip to content

Commit

Permalink
added force exit after test are complete. SOCKETs cause extra connect…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
dominusmars committed Mar 1, 2024
1 parent 6cdcf33 commit 578a1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"scripts": {
"test": "mocha -r ts-node/register --timeout 10000 test/**/*.spec.ts",
"test_integration": "mocha -r ts-node/register --timeout 30000 tests/**/*.spec.ts ",
"test_integration": "mocha -r ts-node/register --timeout 30000 --exit tests/**/*.spec.ts ",
"start": "tsc && cross-env DEV=true node --inspect --trace-warnings ./dist/Tortilla.js",
"start_linux": "tsc && cross-env DEV=true node --inspect --trace-warnings ./dist/Tortilla.js",
"build_linux": "export SALT=$(node -e \"const crypto = require('crypto'); console.log(crypto.randomBytes(256).toString('hex'));\") && export SALT_2=$(node -e \"const crypto = require('crypto'); console.log(crypto.randomBytes(256).toString('hex'));\") && node ./build/prebuild.js $SALT $SALT_2 && tsc && pkg --out-path releases/latest/arm -t \"node16-linux-arm64,node16-win-arm64,node16-macos-arm64\" -C Gzip -c package.json ./dist/Tortilla.js && node ./build/postbuild.js $SALT $SALT_2 && echo 'Binaries are located in releases/latest' ",
Expand Down

1 comment on commit 578a1b3

@dominusmars
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this exit to mocha because after adding socket commands to the mix. the tests wouldnt exist causing it to stall. exit forces mocha to exit after test have been done. But this shows a problem with the socket commands keeping connections alive which shouldnt be.

Please sign in to comment.