Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 committed Mar 10, 2024
1 parent ccec754 commit 303dc5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http/filestream/filestream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ func TestWriteFilesToStreamAndReadFilesFromStream(t *testing.T) {
content, err := os.ReadFile(file1)
assert.NoError(t, err)
assert.Equal(t, file1Content, content)
assert.NoError(t, os.Remove(file1))

// Validate file 2 transferred successfully
file2 = filepath.Join(targetDir, "test2.txt")
assert.FileExists(t, file2)
content, err = os.ReadFile(file2)
assert.NoError(t, err)
assert.Equal(t, file2Content, content)
assert.NoError(t, os.Remove(file2))
}

func simpleFileHandler(fileName string) (fileWriter io.Writer, err error) {
Expand Down

0 comments on commit 303dc5b

Please sign in to comment.