Skip to content

Commit

Permalink
Issue minishift#2365 Log is not closed properly in the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agajdosi authored and LalatenduMohanty committed May 7, 2018
1 parent 3f64e64 commit ec15fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/util/integration_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func StartLog(logPath string) error {
logFileName := fmt.Sprintf("integration_%d-%d-%d_%02d-%02d-%02d.log", t.Year(), t.Month(),
t.Day(), t.Hour(), t.Minute(), t.Second())
logPath = path.Join(logPath, logFileName)
logFile, err := os.OpenFile(logPath, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)

var err error
logFile, err = os.OpenFile(logPath, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit ec15fed

Please sign in to comment.