From 145f904ed329346333f4ea9fea4573e439e2014a Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Tue, 9 Mar 2010 09:47:24 -0500 Subject: [PATCH] Fix busy test to wait for thread to start --- test/vagrant/busy_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/vagrant/busy_test.rb b/test/vagrant/busy_test.rb index 3f9e33b5d..e4187647d 100644 --- a/test/vagrant/busy_test.rb +++ b/test/vagrant/busy_test.rb @@ -54,9 +54,11 @@ class BusyTest < Test::Unit::TestCase should "report busy to the outside world regardless of thread" do Thread.new do Vagrant.busy do - sleep(1) + sleep(2) end end + # Give the thread time to start + sleep(1) # While the above thread is executing vagrant should be busy assert Vagrant.busy?