Skip to content

Commit

Permalink
test: remove created config file after test (#28039)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichn-hu authored Sep 14, 2021
1 parent 89617e2 commit 6ebfe8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func TestConfig(t *testing.T) {

f, err := os.Create(configFile)
require.NoError(t, err)
defer func(configFile string) {
require.NoError(t, os.Remove(configFile))
}(configFile)

// Make sure the server refuses to start if there's an unrecognized configuration option
_, err = f.WriteString(`
Expand Down

0 comments on commit 6ebfe8a

Please sign in to comment.