test_server: ensure stderr is written to before reading
commit6d7e11482a484b50215701993408057b80c82bbe
authorEric Wong <normalperson@yhbt.net>
Sun, 15 Nov 2009 20:09:14 +0000 (15 12:09 -0800)
committerEric Wong <normalperson@yhbt.net>
Sun, 15 Nov 2009 20:09:14 +0000 (15 12:09 -0800)
tree20930db93e47bb27775cfba45c1f646472c6e538
parentada989844090d88c4fdc0a568ff4df2c0c8397fb
test_server: ensure stderr is written to before reading

This works around a race condition caused by the server
closing the connection before writing out to stderr in
the ensure block.  So to ensure we've waited on the server
to write to the log file, just send another HTTP request
since we know our test server only processes requests
serially.
test/unit/test_server.rb