Skip to content

Commit 914d6ed

Browse files
sarangan12Raghav Katyal
authored andcommitted
CB-10783: Modify expected position to be in a proper range.This closes #89
1 parent 3706b75 commit 914d6ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/tests.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,9 @@ exports.defineAutoTests = function () {
372372
flag = false;
373373
setTimeout(function () {
374374
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);
375+
//in four seconds expect position to be between 4 & 10. Here, the values are chosen to give
376+
//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();
377378
media1.stop();
378379
media1.release();
379380
done();

0 commit comments

Comments
 (0)