Skip to content

Commit

Permalink
test: cleanup temporary file
Browse files Browse the repository at this point in the history
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
  • Loading branch information
zhijianli88 committed Jan 13, 2021
1 parent ea3b07f commit f5ba35b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions klog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ func TestOpenAppendOnStart(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer os.Remove(f.Name())
logging.logFile = f.Name()

// Erase files created by prior tests,
Expand Down

0 comments on commit f5ba35b

Please sign in to comment.