unit tests and fixes
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user