On Jan 31, 6:11 pm, SethP <[email protected]> wrote: > In our tests we often need read/write streams because if the code > under test is reading a stream then the test needs to write to it and > vice-versa. I'm guessing this is a common problem, but I'm not aware > of a common solution - how are people tackling this? I would expect > something like this to be built into Node, but I've never found it.
I'm not sure if it's exactly what you're looking for, but you can check/use mikeal's simple BufferedStream here: https://github.com/mikeal/morestreams/blob/master/main.js -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
