soundcloud / areweplayingyet

html5 audio benchmarks
BSD 2-Clause "Simplified" License
311 stars 69 forks source link

support-seeking-unbuffered-position.js times out, causing spurious failures #29

Closed kinetiknz closed 13 years ago

kinetiknz commented 13 years ago

support-seeking-unbuffered-position.js expects 30 timeupdate events after seeking to an unbuffered position. Fired at 4Hz, this will take 7.5s. The test has a 15s timeout, which leaves only 7.5s to load the media's metadata, run the loadedmetadata handler, and complete the seek initiated from that handler. Given a high-enough latency link, the test can time out before it has a chance to pass.

This may apply to other tests too, but this is the only one that regularly fails for me.

tsenart commented 13 years ago

I am going to fix this by deferring the start of the timeout to the loadedmetadata event.

tsenart commented 13 years ago

Fixed in https://github.com/soundcloud/areweplayingyet/commit/85608f8fad473d6180a9dc0da02fd4dab7abf423