浏览代码

Updated memory performance test timeout and allowed memory space

sanex 4 年之前
父节点
当前提交
d4e19334a7

文件差异内容过多而无法显示
+ 0 - 0
dist/index.browser.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.cli.js


文件差异内容过多而无法显示
+ 0 - 0
dist/index.js


+ 1 - 1
scripts/test-mocha-memory-performance

@@ -1,3 +1,3 @@
 #!/bin/bash
 
-NODE_OPTIONS=--max-old-space-size=200 $(yarn bin)/mocha --require ts-node/register test/performance-tests/JavaScriptObfuscatorMemory.spec.ts
+NODE_OPTIONS=--max-old-space-size=220 $(yarn bin)/mocha --require ts-node/register test/performance-tests/JavaScriptObfuscatorMemory.spec.ts

+ 1 - 1
test/performance-tests/JavaScriptObfuscatorMemory.spec.ts

@@ -13,7 +13,7 @@ describe('JavaScriptObfuscator memory', function () {
     const gcDiffThreshold: number = 10;
     const allowedHeapDiffThreshold: number = 80;
 
-    this.timeout(100000);
+    this.timeout(150000);
 
     describe('memory: heap usage', () => {
         it('should keep heap usage without memory leaks', () => {

部分文件因为文件数量过多而无法显示