From 8a9fa302f08a248c73d3ec133dfe65b5f7a9a16f Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 3 Mar 2017 09:49:55 -0800 Subject: [PATCH] Removing timing issues from test coverage --- test/unit/vagrant/util/subprocess_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/vagrant/util/subprocess_test.rb b/test/unit/vagrant/util/subprocess_test.rb index c3686db76..d20a7fffd 100644 --- a/test/unit/vagrant/util/subprocess_test.rb +++ b/test/unit/vagrant/util/subprocess_test.rb @@ -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