Skip to content

Commit

Permalink
Flush I/O before reading from test file (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored Sep 28, 2021
1 parent ca6b550 commit 9b69ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/AWS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ end
# GET with an IO target
mktemp() do f, io
S3.get_object(bucket_name, file_name, Dict("response_stream" => io))
flush(io)
@test read(f, String) == body
end
finally
Expand Down
1 change: 1 addition & 0 deletions test/minio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ try
# Test retrieving an object into a stream target
mktemp() do f, io
S3.get_object("anewbucket", "myobject", Dict("response_stream" => io))
flush(io)
@test read(f, String) == "Hi from Minio"
end

Expand Down

0 comments on commit 9b69ef0

Please sign in to comment.