unit tests and fixes
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-12-26 13:06:10 -06:00
parent 4fcc2ec076
commit 934d400cb4

View File

@ -630,6 +630,9 @@ TEST_F(file_manager_test, upload_occurs_after_write_if_fully_downloaded) {
"file_upload_completed",
});
EXPECT_CALL(mp, upload_file("/test_write_full_download.txt", source_path, _))
.WillOnce(Return(api_error::success));
std::size_t bytes_written{};
data_buffer data = {0, 1, 2};
EXPECT_EQ(api_error::success, open_file->write(0u, data, bytes_written));
@ -640,9 +643,6 @@ TEST_F(file_manager_test, upload_occurs_after_write_if_fully_downloaded) {
}
open_file.reset();
EXPECT_CALL(mp, upload_file("/test_write_full_download.txt", source_path, _))
.WillOnce(Return(api_error::success));
mgr.close(handle);
capture.wait_for_empty();