Skip to content

Commit

Permalink
flush
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 5, 2024
1 parent 9341597 commit 3644523
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_corofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ TEST_CASE("large_file_write_test") {
async_simple::coro::syncAwait(
file.async_write({block_vec.data(), (size_t)remain}));
}
auto &stream = file.get_stream_file();
if (stream) {
stream.flush();
}
CHECK(fs::file_size(filename) == file_size);
std::ifstream is(filename, std::ios::binary);
if (!is.is_open()) {
Expand Down

0 comments on commit 3644523

Please sign in to comment.