Skip to content

Commit

Permalink
Fixed interaction between testsuites
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Sep 12, 2019
1 parent 2b36ef9 commit 7c2b5de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/network_autoconfiguration_test.rb
Expand Up @@ -222,6 +222,11 @@ def probe_netcard_factory(num)
context "when the proposal is required" do
let(:proposal) { true }

after(:each) do
# some methods might have sideeffects - clen them :-/
Yast::NetworkInterfaces.Devices.reject! { |k, _| k == "br" }
end

it "creates the virtulization proposal config" do
expect(Yast::Lan).to receive(:ProposeVirtualized).and_call_original
expect { instance.configure_virtuals }.to change { Yast::NetworkInterfaces.Devices.keys.size }.from(1).to(2)
Expand Down

0 comments on commit 7c2b5de

Please sign in to comment.