wait for process termination instead of sleeping
This commit is contained in:
1 parent
9d6d0bbb7d
commit
2dcd2c03db
1 file changed
+1
-1
@@ -95,7 +95,7 @@ describe "Foreman::Engine", :fakefs do
|
|||||||
stub(subject).watch_for_output
|
stub(subject).watch_for_output
|
||||||
stub(subject).watch_for_termination
|
stub(subject).watch_for_termination
|
||||||
subject.start
|
subject.start
|
||||||
sleep 1
|
Process.waitall
|
||||||
mock(subject).info(/started with pid \d+/, "utf8.1", anything)
|
mock(subject).info(/started with pid \d+/, "utf8.1", anything)
|
||||||
mock(subject).info("\xff\x03\n", "utf8.1", anything)
|
mock(subject).info("\xff\x03\n", "utf8.1", anything)
|
||||||
subject.send(:poll_readers)
|
subject.send(:poll_readers)
|
||||||
|
|||||||
Reference in new issue
Block a user