test: fix test-sync-io-option
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Tue, 19 May 2015 08:22:37 +0000 (10:22 +0200)
committerBrendan Ashworth <brendan.ashworth@me.com>
Wed, 20 May 2015 05:51:10 +0000 (22:51 -0700)
commit867631986f5cd8950caf706ee92fc2a8ee3d4c0f
tree9494d4285a3645f902206bde6a3ec5ec020c4863
parentf29762f4dd5811464684f820286f1c90a694bdff
test: fix test-sync-io-option

Wait for all the data to be available in stderr before checking its
contents. In FreeBSD this was failing because stderr data was being
emitted in multiple chunks. 4 WARNINGS are printed instead of 2 for
each sync call inside readFileSync. require('fs') does not print any
trace.

PR-URL: https://github.com/nodejs/io.js/pull/1734
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
test/parallel/test-sync-io-option.js