[whatwg/streams] Fixing 'ReadableStream: should call pull when trying to read from a started, empty stream' flakiness (#441)

Some slow WebKit bots have difficulties with this test.
The delay(1) callback is sometimes called  before the callback to the first pull request promise, which makes the call to the first read() call waiting for the first pull request promise to finish.

Increasing the delay from 1 to 10 before actually reading the data is solving the issue on WebKit bots.
As a side note, 10 ms is usually considered as too small for slow WebKit bots.

This patch tries to make the test more deterministic.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/441

-- Commit Summary --

  * Fixing 'ReadableStream: should call pull when trying to read from a started, empty stream' flakiness

-- File Changes --

    M reference-implementation/web-platform-tests/readable-streams/general.js (8)

-- Patch Links --

https://github.com/whatwg/streams/pull/441.patch
https://github.com/whatwg/streams/pull/441.diff

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/441

Received on Thursday, 21 April 2016 09:02:55 UTC