Was getting seemingly totally empty responses from sequest.exec i.e. no stdout, no stderr.
Appears that the close event was being fired before the data had been flushed into the stdout/stderr buffers. This occurred intermittently, seemed to be more likely when receiving tiny responses from server e.g. output of whoami or pwd.
Not sure how to force such a race condition for a test, though all the existing tests pass.
Was getting seemingly totally empty responses from sequest.exec i.e. no stdout, no stderr.
Appears that the
close
event was being fired before the data had been flushed into thestdout
/stderr
buffers. This occurred intermittently, seemed to be more likely when receiving tiny responses from server e.g. output ofwhoami
orpwd
.Not sure how to force such a race condition for a test, though all the existing tests pass.