Skip to content

Commit

Permalink
Reset NetworkInterfaces cache before tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 1, 2015
1 parent 1105720 commit f424947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/default_route_test.rb
Expand Up @@ -85,6 +85,7 @@ def set(section, key, value)
.to receive(:GetType)
.with("")
.and_return nil
Yast::NetworkInterfaces.instance_variable_set(:@initialized, false)

allow(Yast::LanUdevAuto)
.to receive(:AllowUdevModify).and_return false
Expand Down
1 change: 1 addition & 0 deletions test/network_autoconfiguration_test.rb
Expand Up @@ -116,6 +116,7 @@ def set(section, key, value)
.to receive(:GetType). with(/eth\d+/). and_return "eth"
allow(Yast::NetworkInterfaces)
.to receive(:GetType). with(""). and_return nil
Yast::NetworkInterfaces.instance_variable_set(:@initialized, false)

# stub program execution
# - interfaces are up
Expand Down

0 comments on commit f424947

Please sign in to comment.