VM halting uses new VM#stop
This commit is contained in:
parent
2271a41940
commit
745aadd1a5
|
@ -6,7 +6,7 @@ module Vagrant
|
||||||
raise ActionException.new(:vm_not_running) unless @runner.vm.running?
|
raise ActionException.new(:vm_not_running) unless @runner.vm.running?
|
||||||
|
|
||||||
logger.info "Forcing shutdown of VM..."
|
logger.info "Forcing shutdown of VM..."
|
||||||
@runner.vm.stop(true)
|
@runner.vm.stop
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,7 @@ class HaltActionTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
should "force the VM to stop" do
|
should "force the VM to stop" do
|
||||||
@vm.expects(:stop).with(true).once
|
@vm.expects(:stop).once
|
||||||
@action.execute!
|
@action.execute!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue