snoyberg/http-conduit — pull request #84 by joeyadams (2012-12-20 15:21:50+00:00)
Title: tests: Set output to LineBuffering

While troubleshooting the testsuite on Windows, I got output that looked like this:

redirect
deieiEoc tlaplNcc( ecteOkeSsodc:dTepoep e Sttcne(pf(O
... snip ...
tKASeWS )EOtSO()CC ACW
OK(EKSN)WN)AN)SO)ER
AT
NEESOSNOTEOCSTTKO)S)C)O)K

This patch sets `stdout` and `stderr` to LineBuffering, so concurrent error output will be intelligible:

redirect
send: failed (Connection reset by peer (WSAECONNRESET))
user error (accept: can't perform accept on socket ((AF_INET,Stream,0)) in status Closed)
user error (accept: can't perform accept on socket ((AF_INET,Stream,0)) in status Closed)
user error (accept: can't perform accept on socket ((AF_INET,Stream,0)) in status Closed)
user error (accept: can't perform accept on socket ((AF_INET,Stream,0)) in status Closed)