File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ func TestDownloadFromURL_FileNameMatch(t *testing.T) {
26
26
}
27
27
28
28
t .Logf ("Current home directory: %q" , home )
29
- var installLocation = ""
30
29
if runtime .GOOS != "windows" {
31
30
installLocation = filepath .Join (home , installPath )
32
31
} else {
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ func TestGetParameters_check_config_precedence(t *testing.T) {
71
71
getopt .CommandLine = getopt .New ()
72
72
})
73
73
os .Args = []string {"cmd" , "--chdir=../../test-data/integration-tests/test_precedence" }
74
- parameters := prepare ()
75
- parameters = GetParameters ()
74
+ parameters := GetParameters ()
76
75
expected := "0.11.3"
77
76
if parameters .Version != expected {
78
77
t .Error ("Version Param was not as expected. Actual: " + parameters .Version + ", Expected: " + expected )
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ func TestGetParamsFromTerraformVersion_no_file(t *testing.T) {
19
19
params .ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
20
20
params , _ = GetParamsFromTerraformVersion (params )
21
21
if params .Version != "" {
22
- t .Errorf ("Expected emtpy version string. Got: %v" , params .Version )
22
+ t .Errorf ("Expected empty version string. Got: %v" , params .Version )
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ func TestGetParamsFromTfSwitch_no_file(t *testing.T) {
19
19
params .ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
20
20
params , _ = GetParamsFromTfSwitch (params )
21
21
if params .Version != "" {
22
- t .Errorf ("Expected emtpy version string. Got: %v" , params .Version )
22
+ t .Errorf ("Expected empty version string. Got: %v" , params .Version )
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func TestGetParamsTOML_no_file(t *testing.T) {
44
44
params .ChDirPath = "../../test-data/skip-integration-tests/test_no_file"
45
45
params , _ = getParamsTOML (params )
46
46
if params .Version != "" {
47
- t .Errorf ("Expected emtpy version string. Got: %v" , params .Version )
47
+ t .Errorf ("Expected empty version string. Got: %v" , params .Version )
48
48
}
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments