wait for process termination instead of sleeping

This commit is contained in:
David Dollar
2012-01-29 23:02:03 -05:00
parent 9d6d0bbb7d
commit 2dcd2c03db

View File

@@ -95,7 +95,7 @@ describe "Foreman::Engine", :fakefs do
stub(subject).watch_for_output
stub(subject).watch_for_termination
subject.start
sleep 1
Process.waitall
mock(subject).info(/started with pid \d+/, "utf8.1", anything)
mock(subject).info("\xff\x03\n", "utf8.1", anything)
subject.send(:poll_readers)