Skip to content

Commit

Permalink
test: Fix memory leak detection test with node LTS/Carbon.
Browse files Browse the repository at this point in the history
  • Loading branch information
voodooattack committed Nov 24, 2018
1 parent 8a2f460 commit cba5b2d
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 @@ -29,7 +29,7 @@
"prepublish": "npm run build && npm run typedoc && npm run test",
"typedoc": "typedoc --out docs --target es6 --theme minimal --mode file src",
"lint": "tslint -c tslint.json --project .",
"pretest": "npm run clean && npm run lint && npm run debug-build",
"pretest": "npm run clean && npm run lint && npm run build",
"test": "nyc mocha --expose-gc --ui mocha-typescript test/test_**.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"watch": "mocha-typescript-watch",
Expand Down
2 changes: 1 addition & 1 deletion test/test_native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ export class TestNative {
}
gc();
const memAfter = process.memoryUsage();
assert.isAtMost(memAfter.external - memBefore.external, 1024);
assert.isAtMost(memAfter.external - memBefore.external, 1024 * 1024 * 5, 'possible memory leak detected');
}
}

0 comments on commit cba5b2d

Please sign in to comment.