From 7711e07f053ccccd491f811c9cf33334a0895120 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 17 Jun 2015 17:56:31 +0200 Subject: [PATCH] provisioner/windows-restart: test fix --- provisioner/windows-restart/provisioner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/windows-restart/provisioner_test.go b/provisioner/windows-restart/provisioner_test.go index d2a54d274..bbb89e116 100644 --- a/provisioner/windows-restart/provisioner_test.go +++ b/provisioner/windows-restart/provisioner_test.go @@ -34,7 +34,7 @@ func TestProvisionerPrepare_Defaults(t *testing.T) { t.Errorf("unexpected remote path: %s", p.config.RestartTimeout) } - if p.config.RestartCommand != "shutdown /r /c \"packer restart\" /t 5 && net stop winrm" { + if p.config.RestartCommand != "powershell \"& {Restart-Computer -force }\"" { t.Errorf("unexpected remote path: %s", p.config.RestartCommand) } }