diff --git a/command/import_test.go b/command/import_test.go index 7eed616ce3..0c47571222 100644 --- a/command/import_test.go +++ b/command/import_test.go @@ -1,9 +1,9 @@ package command import ( - "log" "fmt" "io/ioutil" + "log" "os" "path/filepath" "strings" diff --git a/command/refresh_test.go b/command/refresh_test.go index 928384c37a..5791ec6ec5 100644 --- a/command/refresh_test.go +++ b/command/refresh_test.go @@ -343,7 +343,7 @@ func TestRefresh_outPath(t *testing.T) { t.Fatalf("wrong new object\ngot: %swant: %s", spew.Sdump(actual), spew.Sdump(expected)) } - if _, err := os.Stat(outPath+DefaultBackupExtension); !os.IsNotExist(err) { + if _, err := os.Stat(outPath + DefaultBackupExtension); !os.IsNotExist(err) { if err != nil { t.Fatalf("failed to test for backup file: %s", err) } diff --git a/states/statemgr/filesystem_test.go b/states/statemgr/filesystem_test.go index c21acd34e3..1d393417e8 100644 --- a/states/statemgr/filesystem_test.go +++ b/states/statemgr/filesystem_test.go @@ -256,7 +256,7 @@ func TestFilesystem_backupAndReadPath(t *testing.T) { // The backup functionality should've saved a copy of the original contents // of the _output_ file, even though the first snapshot was read from // the _input_ file. - t.Run("backup file", func (t *testing.T) { + t.Run("backup file", func(t *testing.T) { bfh, err := os.Open(backupPath) if err != nil { t.Fatal(err) @@ -270,7 +270,7 @@ func TestFilesystem_backupAndReadPath(t *testing.T) { t.Errorf("wrong marker value in backup state file\ngot: %#v\nwant: %#v", got, want) } }) - t.Run("output file", func (t *testing.T) { + t.Run("output file", func(t *testing.T) { ofh, err := os.Open(outFile.Name()) if err != nil { t.Fatal(err)