workbench: Improve integration test Rails launch.
authorBrett Smith <brett@curoverse.com>
Tue, 25 Mar 2014 18:36:48 +0000 (14:36 -0400)
committerBrett Smith <brett@curoverse.com>
Tue, 25 Mar 2014 18:36:48 +0000 (14:36 -0400)
commit64cdcaf6b38437c459bce30445e547c274e3f99e
treef0561f4b33a35ad5d8d4ee1ced65396043af354f
parentb65cb64f0d7865266bd8674e681cd0f48fd476c7
workbench: Improve integration test Rails launch.

The previous version was susceptible to a race condition where it
would read the file after Rails created it, but before it actually
wrote a pid to it.  This would cause the rake test task to kill itself
later by running Process.kill('TERM', 0).
apps/workbench/test/integration_helper.rb