Bug 1294605 - Increase 'ended' timeout in test_gUM_trackEnded.html. r?jib draft
authorAndreas Pehrson <pehrsons@gmail.com>
Fri, 21 Oct 2016 15:46:17 +0200
changeset 428043 c7d6f2fd8de95c2b626793a4c7254fce0986b6ef
parent 428042 35b07a9b31e1bf80773e582566ce359d5a910aee
child 534645 fe96c6e3ee71d3b5ca974d255fa17b442e70aa26
push id33215
push userbmo:pehrson@telenordigital.com
push dateFri, 21 Oct 2016 13:47:09 +0000
reviewersjib
bugs1294605
milestone52.0a1
Bug 1294605 - Increase 'ended' timeout in test_gUM_trackEnded.html. r?jib MozReview-Commit-ID: 84BXrFnrdrE
dom/media/tests/mochitest/test_getUserMedia_trackEnded.html
--- a/dom/media/tests/mochitest/test_getUserMedia_trackEnded.html
+++ b/dom/media/tests/mochitest/test_getUserMedia_trackEnded.html
@@ -31,17 +31,17 @@
         // We're cloning a stream containing identical tracks (an original
         // and its clone) to test that ended works both for originals
         // clones when they're both owned by the same MediaStream.
         // (Bug 1274221)
         stream = new MediaStream([].concat(s.getTracks(), s.getTracks())
                                    .map(t => t.clone())).clone();
         var allTracksEnded = Promise.all(stream.getTracks().map(t => {
           info("Set up ended handler for track " + t.id);
-          return haveEvent(t, "ended", wait(5000))
+          return haveEvent(t, "ended", wait(50000))
             .then(event => {
               info("ended handler invoked for track " + t.id);
               is(event.target, t, "Target should be correct");
             }, e => e ? Promise.reject(e)
                       : ok(false, "ended event never raised for track " + t.id));
         }));
         stream.getTracks().forEach(t =>
           is(t.readyState, "live",