Skip to content

Commit

Permalink
clsoe files
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Jan 16, 2025
1 parent d54578d commit 61a9e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/internal/packager2/layout/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ func TestSplitDeleteExistingFiles(t *testing.T) {
require.NoError(t, err)
// Create many fake split files
for i := range 15 {
_, err := os.Create(fmt.Sprintf("%s.part%03d", inputFilename, i))
f, err := os.Create(fmt.Sprintf("%s.part%03d", inputFilename, i))
require.NoError(t, err)
require.NoError(t, f.Close())
}

chunkSize := 20
Expand Down

0 comments on commit 61a9e95

Please sign in to comment.