cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alsoro...@apache.org
Subject cordova-plugin-media git commit: CB-12493 (Tests) Fixed spec.21 flakyness
Date Wed, 22 Feb 2017 11:21:59 GMT
Repository: cordova-plugin-media
Updated Branches:
  refs/heads/master 112ef9620 -> cc4d641b9


CB-12493 (Tests) Fixed spec.21 flakyness


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

Branch: refs/heads/master
Commit: cc4d641b9f24643f07263b24a88621367102a188
Parents: 112ef96
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Wed Feb 22 14:21:44 2017 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Wed Feb 22 14:21:44 2017 +0300

----------------------------------------------------------------------
 tests/tests.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/cc4d641b/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 9a27ced..25acb4e 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -312,7 +312,8 @@ exports.defineAutoTests = function () {
                         }
 
                         media.getCurrentPosition(function (position) {
-                            expect(position).toBeCloseTo(20, 0);
+                            expect(position).toBeGreaterThan(19);
+                            expect(position).toBeLessThan(21);
                             context.done = true;
                             done();
                         }, failed.bind(null, done, 'media1.getCurrentPosition - Error getting
media current position', context));


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


Mime
View raw message