From 9b69ef050b3ec9f82a000347f53e55ad6dc8bb7a Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Mon, 27 Sep 2021 22:43:16 -0500 Subject: [PATCH] Flush I/O before reading from test file (#463) --- test/AWS.jl | 1 + test/minio.jl | 1 + 2 files changed, 2 insertions(+) diff --git a/test/AWS.jl b/test/AWS.jl index 3f7e37d8c0..d88cd4dce8 100644 --- a/test/AWS.jl +++ b/test/AWS.jl @@ -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 diff --git a/test/minio.jl b/test/minio.jl index 678bf97065..921fe0a14c 100644 --- a/test/minio.jl +++ b/test/minio.jl @@ -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