From a73ea6ab7ac591625f62b59d3e23ec3f4d0a4f8c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 24 Jan 2014 09:51:31 -0800 Subject: [PATCH] core: fix hang in test --- test/unit/vagrant/action/builtin/box_add_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/unit/vagrant/action/builtin/box_add_test.rb b/test/unit/vagrant/action/builtin/box_add_test.rb index ea9e8484f..f761bb35d 100644 --- a/test/unit/vagrant/action/builtin/box_add_test.rb +++ b/test/unit/vagrant/action/builtin/box_add_test.rb @@ -244,8 +244,11 @@ describe Vagrant::Action::Builtin::BoxAdd do box_collection.should_receive(:add).never app.should_receive(:call).never - expect { subject.call(env) }. - to raise_error(Vagrant::Errors::BoxAddShortNotFound) + url = "http://127.0.0.1:#{port}" + with_temp_env("VAGRANT_SERVER_URL" => url) do + expect { subject.call(env) }. + to raise_error(Vagrant::Errors::BoxAddShortNotFound) + end end end