summaryrefslogtreecommitdiffstats
path: root/features/support/hooks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/hooks.rb')
-rw-r--r--features/support/hooks.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb
index 4dce707..cf79832 100644
--- a/features/support/hooks.rb
+++ b/features/support/hooks.rb
@@ -70,7 +70,7 @@ end
AfterFeature('@product') do
delete_snapshot($background_snapshot) if !$keep_snapshots
$vmstorage.clear_pool
- $vmnet.destroy
+ $vmnet.destroy_and_undefine
$virt.close
end
@@ -123,7 +123,7 @@ After('@product') do |scenario|
@sniffer.stop
@sniffer.clear
end
- @vm.destroy if @vm
+ @vm.destroy_and_undefine if @vm
end
After('@product', '~@keep_volumes') do