Переглянути джерело

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', () => {

Деякі файли не було показано, через те що забагато файлів було змінено