[gjs/test-ci] tests: Relax timeouts on mainloop tests



commit 9fd3b98f86a99d0471f7e8003da27ac948f4bdb2
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Apr 26 16:12:25 2020 -0700

    tests: Relax timeouts on mainloop tests
    
    In case these are run under high load, the callbacks might not complete
    within the default timeout.

 installed-tests/js/testMainloop.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/installed-tests/js/testMainloop.js b/installed-tests/js/testMainloop.js
index aff3d5aa..e10969f3 100644
--- a/installed-tests/js/testMainloop.js
+++ b/installed-tests/js/testMainloop.js
@@ -19,8 +19,8 @@ describe('Mainloop.timeout_add()', function () {
 
         Mainloop.timeout_add(10, runTenTimes);
         Mainloop.timeout_add(10, runOnlyOnce);
-        neverRunSource = Mainloop.timeout_add(15000, neverRun);
-    });
+        neverRunSource = Mainloop.timeout_add(120000, neverRun);
+    }, 60000);
 
     it('runs a timeout function', function () {
         expect(runOnlyOnce).toHaveBeenCalledTimes(1);
@@ -61,7 +61,7 @@ describe('Mainloop.idle_add()', function () {
         Mainloop.idle_add(quitAfterManyRuns);
 
         Mainloop.source_remove(neverRunsId);
-    });
+    }, 60000);
 
     it('runs an idle function', function () {
         expect(runOnce).toHaveBeenCalledTimes(1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]