From 2dcd2c03db30c6b57f67522c807768e9c4267b1b Mon Sep 17 00:00:00 2001 From: David Dollar Date: Sun, 29 Jan 2012 23:02:03 -0500 Subject: [PATCH] wait for process termination instead of sleeping --- spec/foreman/engine_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/foreman/engine_spec.rb b/spec/foreman/engine_spec.rb index be41c63..642ee1c 100644 --- a/spec/foreman/engine_spec.rb +++ b/spec/foreman/engine_spec.rb @@ -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)