Re: [streams] Made "Multiple readers can access the stream in sequence" test robust (#306)

> @@ -155,7 +155,8 @@ test('Multiple readers can access the stream in sequence', t => {
>    reader2.read().then(r => t.deepEqual(r, { value: 'b', done: false }, 'reading the second chunk from reader2 works'));
>    reader2.releaseLock();
>  
> -  t.end();
> +  // Let promises run.
> +  setTimeout(() => t.end(), 50);

Good catch! It would be better to use t.plan(2) at the top of the test though, I think.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/306/files#r27106211

Received on Wednesday, 25 March 2015 09:50:58 UTC