Skip to content

Commit

Permalink
Incorporated additional feedback on close command
Browse files Browse the repository at this point in the history
  • Loading branch information
rnapoles-rh committed Mar 5, 2022
1 parent f17a19d commit 83650b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/helper/helper_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,14 @@ 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)
fmt.Println("Error when opening file: ", err)
} else {
f.Close()
_, err = f.WriteString(resultsRow)
if err != nil {
fmt.Println("Error: ", err)
fmt.Println("Error when writing to file: ", err)
}
if err = f.Close(); err != nil {
fmt.Println("Error: ", err)
fmt.Println("Error when closing file: ", err)
}
}

Expand Down

0 comments on commit 83650b1

Please sign in to comment.