Skip to content

Commit

Permalink
Merge pull request #1216 from CallanTaylor/close-unclosed-file
Browse files Browse the repository at this point in the history
tests: close config file
  • Loading branch information
ploxiln authored Dec 4, 2019
2 parents 702a1c0 + bba7bba commit 4c98d17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/nsqd/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestConfigFlagParsing(t *testing.T) {
if err != nil {
t.Fatalf("%s", err)
}
defer f.Close()
toml.DecodeReader(f, &cfg)
cfg.Validate()

Expand Down

0 comments on commit 4c98d17

Please sign in to comment.