core: fix hang in test
This commit is contained in:
parent
a115750401
commit
a73ea6ab7a
|
@ -244,10 +244,13 @@ describe Vagrant::Action::Builtin::BoxAdd do
|
||||||
box_collection.should_receive(:add).never
|
box_collection.should_receive(:add).never
|
||||||
app.should_receive(:call).never
|
app.should_receive(:call).never
|
||||||
|
|
||||||
|
url = "http://127.0.0.1:#{port}"
|
||||||
|
with_temp_env("VAGRANT_SERVER_URL" => url) do
|
||||||
expect { subject.call(env) }.
|
expect { subject.call(env) }.
|
||||||
to raise_error(Vagrant::Errors::BoxAddShortNotFound)
|
to raise_error(Vagrant::Errors::BoxAddShortNotFound)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "adds the latest version of a box with only one provider" do
|
it "adds the latest version of a box with only one provider" do
|
||||||
box_path = iso_env.box2_file(:virtualbox)
|
box_path = iso_env.box2_file(:virtualbox)
|
||||||
|
|
Loading…
Reference in New Issue