Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 257a653

Browse files
author
Ian Campbell
committed
e2e: Close the config file after writing it.
Signed-off-by: Ian Campbell <[email protected]>
1 parent 8aacca2 commit 257a653

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

e2e/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (d dockerCliCommand) createTestCmd(ops ...ConfigFileOperator) (icmd.Cmd, fu
4444
if err != nil {
4545
panic(err)
4646
}
47+
defer configFile.Close()
4748
err = json.NewEncoder(configFile).Encode(config)
4849
if err != nil {
4950
panic(err)

0 commit comments

Comments
 (0)