Skip to content

Commit

Permalink
close the file
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jan 9, 2025
1 parent ebccf66 commit 741de8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestRuntimeMap(t *testing.T) {
sb.WriteString("variable2=value2\n")
tempFile, err := os.CreateTemp(t.TempDir(), "test")
require.NoError(t, err, "could not create temp file")
defer tempFile.Close()
_, err = tempFile.WriteString(sb.String())
require.NoError(t, err, "could not write to temp file")
data2 := &RuntimeMap{}
Expand Down

0 comments on commit 741de8e

Please sign in to comment.