Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorder mux test because 'readable' event deferred
The behaviour of the `'readable'` event changed, or was tightened up, in nodejs/node#17979 such that it is _always_ called on the next tick. This change appears first in Node.JS v10.0). Since we rely on `'readable' in the multiplexing, it means that we have to be more careful about when we wait for the next event loop to come around in tests. The tests tend to be much more brittle than live code with respect to the order things happen, since they attempt to nail down precise states or orderings (e.g., "the `unpipe` happened exactly between these writes").
- Loading branch information