瀏覽代碼

test: ensure tests conclude on low end development environments

El RIDO 1 周之前
父節點
當前提交
13bddc9775
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      js/test/CopyToClipboard.js

+ 4 - 2
js/test/CopyToClipboard.js

@@ -3,6 +3,8 @@ const common = require('../common');
 const fc = require('fast-check');
 const fc = require('fast-check');
 
 
 describe('CopyToClipboard', function () {
 describe('CopyToClipboard', function () {
+    this.timeout(30000);
+
     afterEach(() => {
     afterEach(() => {
         globalThis.cleanup();
         globalThis.cleanup();
     });
     });
@@ -43,7 +45,7 @@ describe('CopyToClipboard', function () {
 
 
                     return text === savedToClipboardText;
                     return text === savedToClipboardText;
                 }
                 }
-            ));
+            ), { numRuns: 20 });
         });
         });
 
 
         /**
         /**
@@ -85,7 +87,7 @@ describe('CopyToClipboard', function () {
 
 
                     return copiedTextWithoutSelectedText === text;
                     return copiedTextWithoutSelectedText === text;
                 }
                 }
-            ));
+            ), { numRuns: 20 });
         });
         });
 
 
         /**
         /**