Finally get rid of sleeps in test

This commit is contained in:
Mitchell Hashimoto 2010-04-24 03:27:36 -07:00
parent 4394882a7b
commit 037263da98
1 changed files with 1 additions and 6 deletions

View File

@ -63,14 +63,9 @@ class BusyTest < Test::Unit::TestCase
should "report busy to the outside world regardless of thread" do
Thread.new do
Vagrant.busy do
sleep(2)
assert Vagrant.busy?
end
end
# Give the thread time to start
sleep(1)
# While the above thread is executing vagrant should be busy
assert Vagrant.busy?
end
should "trap INT" do