Skip to content

Commit

Permalink
avoid flaky cases in verification testing (#4785)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Mar 16, 2021
1 parent 7b43b63 commit b98ce6c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/release/mathjs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ rm -rf tmp/mathjs \
@@ -68 +75 @@ export function format (value, options) {
- return value.toString()
+ return HACK(value).toString()
--- a/test/node-tests/cli/cli.test.js
+++ b/test/node-tests/cli/cli.test.js
@@ -36 +35,0 @@ describe('command line interface', function () {
- const path2 = path.join(__dirname, 'script2')
@@ -38,2 +37,2 @@ describe('command line interface', function () {
- run('"' + path1 + '" "' + path2 + '"', function (e, result) {
- assert.strictEqual(result, '2\n8\n')
+ run('"' + path1 + '"', function (e, result) {
+ assert.strictEqual(result, '2\n')
--- a/test/unit-tests/expression/node/Node.test.js
+++ b/test/unit-tests/expression/node/Node.test.js
@@ -157 +157 @@ describe('Node', function () {
Expand Down
4 changes: 4 additions & 0 deletions test/release/rollup-ts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ rm -rf tmp/rollup \
- "postpublish": "pinst --enable",
- "prepare": "npm run build",
- "prepublishOnly": "pinst --disable && npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
--- a/test/cli/index.js
+++ b/test/cli/index.js
@@ -13,0 +14 @@ sander.rimrafSync(__dirname, 'node_modules');
+sander.rimrafSync(__dirname, 'samples', 'watch', 'watch-config-error');
EOF
ERR=$?; if [ "$ERR" != "0" ]; then echo "Error: $ERR"; exit $ERR; fi
npm install esbuild-wasm@0.8.56 \
Expand Down

0 comments on commit b98ce6c

Please sign in to comment.