core: fix hang in test

This commit is contained in:
Mitchell Hashimoto 2014-01-24 09:51:31 -08:00
parent a115750401
commit a73ea6ab7a
1 changed files with 5 additions and 2 deletions

View File

@ -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