Skip to content

Commit 764a8eb

Browse files
committed
Pet go vet
1 parent 14c7017 commit 764a8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/param_parsing/parameters_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func TestGetParameters_dry_run_wont_download_anything(t *testing.T) {
137137
installFileVersionPath := lib.ConvertExecutableExt(filepath.Join(installLocation, product.GetVersionPrefix()+params.Version))
138138
// Make sure the file tfswitch WOULD download is absent
139139
_ = os.Remove(installFileVersionPath)
140-
lib.InstallProductVersion(product, params.DryRun, params.Version, params.CustomBinaryPath, params.InstallPath, params.MirrorURL)
140+
lib.InstallProductVersion(product, params.DryRun, params.Version, params.CustomBinaryPath, params.InstallPath, params.MirrorURL, params.Arch)
141141
if lib.FileExistsAndIsNotDir(installFileVersionPath) {
142142
t.Error("Dry run should NOT download any files.")
143143
}
@@ -148,7 +148,7 @@ func TestGetParameters_dry_run_wont_download_anything(t *testing.T) {
148148

149149
func writeTestFile(t *testing.T, basePath string, fileName string, fileContent string) {
150150
fullPath := filepath.Join(basePath, fileName)
151-
if err := os.WriteFile(fullPath, []byte(fileContent), 0600); err != nil {
151+
if err := os.WriteFile(fullPath, []byte(fileContent), 0o600); err != nil {
152152
t.Fatal(err)
153153
}
154154
t.Cleanup(func() {

0 commit comments

Comments
 (0)