Re: [whatwg/streams] Eliminate usages of async_test (#534)

ricea commented on this pull request.



> @@ -209,11 +193,8 @@ async_test(t => {
 
     resolveFirstWritePromise();
 
-    writePromise
-        .then(t.step_func(() => {
-          assert_equals(writeCount, numberOfWrites, `should have called sink's write ${numberOfWrites} times`);
-          t.done();
-        }))
-        .catch(t.step_func(() => assert_unreached('writePromise should not be rejected')));
-  }), 0);
+    return writePromise
+        .then(() =>
+        assert_equals(writeCount, numberOfWrites, `should have called sink's write ${numberOfWrites} times`));

done

-- 
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/534

Received on Thursday, 13 October 2016 07:01:57 UTC