Removing timing issues from test coverage

This commit is contained in:
Chris Roberts 2017-03-03 09:49:55 -08:00
parent 96204383c7
commit 8a9fa302f0
1 changed files with 2 additions and 1 deletions

View File

@ -64,10 +64,11 @@ describe Vagrant::Util::Subprocess do
end
context "when subprocess is running" do
it "should return true" do
sp = described_class.new("sleep", "0.2")
sp = described_class.new("sleep", "5")
thread = Thread.new{ sp.execute }
sleep(0.1)
expect(sp.running?).to be_true
sp.stop
thread.join
end
end