Fix busy test to wait for thread to start
This commit is contained in:
parent
aff8343948
commit
145f904ed3
|
@ -54,9 +54,11 @@ class BusyTest < Test::Unit::TestCase
|
||||||
should "report busy to the outside world regardless of thread" do
|
should "report busy to the outside world regardless of thread" do
|
||||||
Thread.new do
|
Thread.new do
|
||||||
Vagrant.busy do
|
Vagrant.busy do
|
||||||
|
sleep(2)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
# Give the thread time to start
|
||||||
sleep(1)
|
sleep(1)
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# While the above thread is executing vagrant should be busy
|
# While the above thread is executing vagrant should be busy
|
||||||
assert Vagrant.busy?
|
assert Vagrant.busy?
|
||||||
|
|
Loading…
Reference in New Issue