We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3706b75 commit 914d6edCopy full SHA for 914d6ed
tests/tests.js
@@ -372,8 +372,9 @@ exports.defineAutoTests = function () {
372
flag = false;
373
setTimeout(function () {
374
media1.getCurrentPosition(function (position) {
375
- //in four seconds expect position to be two times greater with some degree (1 sec) of accuracy
376
- expect(position).toBeGreaterThan(7);
+ //in four seconds expect position to be between 4 & 10. Here, the values are chosen to give
+ //a large enough buffer range for the position to fall in and are not based on any calculation.
377
+ expect(position >= 4 && position < 10).toBeTruthy();
378
media1.stop();
379
media1.release();
380
done();
0 commit comments