Skip to content

Commit

Permalink
Incorporated additional feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rnapoles-rh committed Feb 24, 2022
1 parent 40e43da commit 44935f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/helper/helper_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ func CommonAfterEach(commonVar CommonVar) {
f, err := os.OpenFile(testResultsFile, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
if err != nil {
fmt.Println("Error: ", err)
} else {
defer f.Close()
if _, err = f.WriteString(resultsRow); err != nil {
fmt.Println("Error: ", err)
}
f.Close()
}
defer f.Close()
if _, err = f.WriteString(resultsRow); err != nil {
fmt.Println("Error: ", err)
}

f.Close()

// delete the random project/namespace created in CommonBeforeEach
commonVar.CliRunner.DeleteNamespaceProject(commonVar.Project)
Expand Down

0 comments on commit 44935f6

Please sign in to comment.