Skip to content

Commit

Permalink
Remove redundant removal of temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
joereuss12 committed Mar 27, 2024
1 parent f10863b commit 0f02210
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/fed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ func TestStatHttp(t *testing.T) {
// Drop the testFileContent into the origin directory
tempFile, err := os.Create(filepath.Join(((*fed.Exports)[0]).StoragePrefix, "test.txt"))
assert.NoError(t, err, "Error creating temp file")
defer os.Remove(tempFile.Name())
_, err = tempFile.WriteString(testFileContent)
assert.NoError(t, err, "Error writing to temp file")
tempFile.Close()
Expand All @@ -446,7 +445,6 @@ func TestStatHttp(t *testing.T) {
// Drop the testFileContent into the origin directory
tempFile, err := os.Create(filepath.Join(((*fed.Exports)[0]).StoragePrefix, "test.txt"))
assert.NoError(t, err, "Error creating temp file")
defer os.Remove(tempFile.Name())
_, err = tempFile.WriteString(testFileContent)
assert.NoError(t, err, "Error writing to temp file")
tempFile.Close()
Expand All @@ -472,7 +470,6 @@ func TestStatHttp(t *testing.T) {
// Drop the testFileContent into the origin directory
tempFile, err := os.Create(filepath.Join(((*fed.Exports)[0]).StoragePrefix, "test.txt"))
assert.NoError(t, err, "Error creating temp file")
defer os.Remove(tempFile.Name())
_, err = tempFile.WriteString(testFileContent)
assert.NoError(t, err, "Error writing to temp file")
tempFile.Close()
Expand Down

0 comments on commit 0f02210

Please sign in to comment.