From a77ce59e36f5ab16e2b87156206ffd9536ba2485 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 14 Mar 2019 12:48:21 +0100 Subject: [PATCH] Update provisioner_test.go remove unecessary test --- provisioner/powershell/provisioner_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/provisioner/powershell/provisioner_test.go b/provisioner/powershell/provisioner_test.go index eef61bf8d..7e7ab2dcd 100644 --- a/provisioner/powershell/provisioner_test.go +++ b/provisioner/powershell/provisioner_test.go @@ -87,18 +87,6 @@ func TestProvisionerPrepare_Defaults(t *testing.T) { t.Fatalf(`Default command should be 'powershell -executionpolicy bypass "& { if (Test-Path variable:global:ProgressPreference){set-variable -name variable:global:ProgressPreference -value 'SilentlyContinue'};. {{.Vars}}; &'{{.Path}}'; exit $LastExitCode }"', but got '%s'`, p.config.ElevatedExecuteCommand) } - if p.config.ValidExitCodes == nil { - t.Fatalf("ValidExitCodes should not be nil") - } - if p.config.ValidExitCodes != nil { - expCodes := []int{0} - for i, v := range p.config.ValidExitCodes { - if v != expCodes[i] { - t.Fatalf("Expected ValidExitCodes don't match actual") - } - } - } - if p.config.ElevatedEnvVarFormat != `$env:%s="%s"; ` { t.Fatalf(`Default command should be powershell '$env:%%s="%%s"; ', but got %s`, p.config.ElevatedEnvVarFormat) }