Merge pull request #10486 from chrisroberts/f-vbox-warn-req

Adjust requirement on warnings for VirtualBox NIC
This commit is contained in:
Chris Roberts 2018-12-06 16:31:34 -08:00 committed by GitHub
commit 520d4d4da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ module VagrantPlugins
class SetDefaultNICType
# Defines versions of VirtualBox with susceptible implementation
# of the E1000 devices.
E1000_SUSCEPTIBLE = Gem::Requirement.new("<= 5.2.22").freeze
E1000_SUSCEPTIBLE = Gem::Requirement.new("< 5.2.22").freeze
def initialize(app, env)
@logger = Log4r::Logger.new("vagrant::plugins::virtualbox::set_default_nic_type")

View File

@ -91,7 +91,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::SetDefaultNICType do
end
context "when virtualbox version is has susceptible E1000" do
let(:virtualbox_version) { "5.2.22" }
let(:virtualbox_version) { "5.2.21" }
it "should output a warning" do
expect(machine.ui).to receive(:warn)