cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-plugin-device-motion git commit: CB-8876 Introduced a small timeout between tests
Date Mon, 27 Apr 2015 15:25:57 GMT
Repository: cordova-plugin-device-motion
Updated Branches:
  refs/heads/master 3950ab7b6 -> dddf7e921


CB-8876 Introduced a small timeout between tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/dddf7e92
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/dddf7e92
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/dddf7e92

Branch: refs/heads/master
Commit: dddf7e921f22150be5bcc8f565821cc3542e81f6
Parents: 3950ab7
Author: alsorokin <alexander.sorokin@akvelon.com>
Authored: Mon Apr 27 16:22:37 2015 +0300
Committer: alsorokin <alexander.sorokin@akvelon.com>
Committed: Mon Apr 27 16:22:37 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/dddf7e92/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index d7c5ec9..0fd6877 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -32,6 +32,14 @@ exports.defineAutoTests = function () {
       done();
     };
 
+    // This timeout is here to lessen the load on native accelerometer
+    // intensive use of which can lead to occasional test failures
+    afterEach(function(done) {
+      setTimeout(function() {
+        done();
+      }, 100);
+    });
+
     it("accelerometer.spec.1 should exist", function () {
       expect(navigator.accelerometer).toBeDefined();
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message