From 78ab21b42f379cd1021a5609f02cf4d03a25e5ce Mon Sep 17 00:00:00 2001 From: Marc Carmier Date: Sun, 12 Feb 2017 18:17:31 +0100 Subject: [PATCH] Test error messages for restart_command and restart_timeout seems to be erroneous --- provisioner/windows-restart/provisioner_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provisioner/windows-restart/provisioner_test.go b/provisioner/windows-restart/provisioner_test.go index 5f7afc25f..81fc83c91 100644 --- a/provisioner/windows-restart/provisioner_test.go +++ b/provisioner/windows-restart/provisioner_test.go @@ -32,11 +32,11 @@ func TestProvisionerPrepare_Defaults(t *testing.T) { } if p.config.RestartTimeout != 5*time.Minute { - t.Errorf("unexpected remote path: %s", p.config.RestartTimeout) + t.Errorf("unexpected restart timeout: %s", p.config.RestartTimeout) } if p.config.RestartCommand != "shutdown /r /f /t 0 /c \"packer restart\"" { - t.Errorf("unexpected remote path: %s", p.config.RestartCommand) + t.Errorf("unexpected restart command: %s", p.config.RestartCommand) } } @@ -51,7 +51,7 @@ func TestProvisionerPrepare_ConfigRetryTimeout(t *testing.T) { } if p.config.RestartTimeout != 1*time.Minute { - t.Errorf("unexpected remote path: %s", p.config.RestartTimeout) + t.Errorf("unexpected restart timeout: %s", p.config.RestartTimeout) } }