[
https://issues.apache.org/jira/browse/CB-10783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214717#comment-15214717
]
ASF GitHub Bot commented on CB-10783:
-------------------------------------
Github user sarangan12 commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-media/pull/89#discussion_r57616771
--- Diff: tests/tests.js ---
@@ -373,7 +373,7 @@ exports.defineAutoTests = function () {
setTimeout(function () {
media1.getCurrentPosition(function (position) {
//in four seconds expect position to be
two times greater with some degree (1 sec) of accuracy
- expect(position).toBeGreaterThan(7);
+ expect(position >= 4 && position <
10).toBeTruthy();
--- End diff --
Added comment
> Flaky media test in iOS
> -----------------------
>
> Key: CB-10783
> URL: https://issues.apache.org/jira/browse/CB-10783
> Project: Apache Cordova
> Issue Type: Test
> Components: Plugin Media
> Reporter: Richard B Knoll
> Labels: found-by-ci, ios
>
> {code}
> cordova-plugin-media-tests.tests >> Media actual playback media.spec.17
> duration should be set properly
> Error: Timeout - Async callback was not invoked within timeout
> specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. in
> file:///Users/buildbot/Library/Developer/CoreSimulator/Devices/DA6D3C8F-39BE-486B-A6DB-362B7BA75FD3/data/Containers/Bundle/Application/746B9F0F-004E-4950-B441-DB5A505104FB/mobilespec.app/www/cdvtests/jasmine-2.2.0/jasmine.js
> (line 1764)
>
> file:///Users/buildbot/Library/Developer/CoreSimulator/Devices/DA6D3C8F-39BE-486B-A6DB-362B7BA75FD3/data/Containers/Bundle/Application/746B9F0F-004E-4950-B441-DB5A505104FB/mobilespec.app/www/cdvtests/jasmine-2.2.0/jasmine.js:1764:32
> {code}
> Shows up sometimes in the CI
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]