Adjust requirement on warnings for VirtualBox NIC

The changeset _did_ get included in the 5.2.22 release so adjust
the requirement to only warn on previous versions
This commit is contained in:
Chris Roberts 2018-12-06 15:38:19 -08:00
parent 1bb6cb21cc
commit 55a8649963
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)