diff --git a/cmd/vela-terraform/plan_test.go b/cmd/vela-terraform/plan_test.go index aad5340..c02e987 100644 --- a/cmd/vela-terraform/plan_test.go +++ b/cmd/vela-terraform/plan_test.go @@ -105,7 +105,7 @@ func TestTerraform_Plan_Command_tf13(t *testing.T) { fmt.Sprintf("-var=%s", p.Vars[1]), fmt.Sprintf("-var-file=%s", p.VarFiles[0]), fmt.Sprintf("-var-file=%s", p.VarFiles[1]), - fmt.Sprintf(p.Directory), + fmt.Sprint(p.Directory), ) got := p.Command() diff --git a/cmd/vela-terraform/validate_test.go b/cmd/vela-terraform/validate_test.go index 156a699..30897b4 100644 --- a/cmd/vela-terraform/validate_test.go +++ b/cmd/vela-terraform/validate_test.go @@ -64,7 +64,7 @@ func TestTerraform_Validation_Command_tf13(t *testing.T) { fmt.Sprintf("-var=%s", v.Vars[1]), fmt.Sprintf("-var-file=%s", v.VarFiles[0]), fmt.Sprintf("-var-file=%s", v.VarFiles[1]), - fmt.Sprintf(v.Directory), + fmt.Sprint(v.Directory), ) got := v.Command()