nock
nock copied to clipboard
chore(#2185): add test to ensure recorder works when response stream not put in flowing mode
ref #2185
Tests look good, thank you! Did you experiment with fixing it and see if it breaks any other tests?
I played around with it a bit, but it appears to be an issue with the order the events are triggered in instead of my original flowing mode cause. I wasn't able to get this test to pass, even while breaking other tests.
Perhaps reading the stream takes enough time or gives enough cycles to the event loop that the other events take place before play()
is called. I'll keep poking at it in my free time.