This commit is contained in:
2024-12-26 09:24:53 -06:00
parent f402f2ef9a
commit 89daf1d688

View File

@ -476,7 +476,7 @@ TEST_F(file_manager_test,
EXPECT_CALL(mp, upload_file).Times(0u);
if (not open_file->is_write_supported()) {
EXPECT_EQ(api_error::success, mgr.get_open_file(handle, true, open_file));
EXPECT_TRUE(mgr.get_open_file(handle, true, open_file));
}
std::size_t bytes_written{};
@ -620,7 +620,7 @@ TEST_F(file_manager_test, upload_occurs_after_write_if_fully_downloaded) {
});
if (not open_file->is_write_supported()) {
EXPECT_EQ(api_error::success, mgr.get_open_file(handle, true, open_file));
EXPECT_TRUE(mgr.get_open_file(handle, true, open_file));
}
std::size_t bytes_written{};
@ -707,7 +707,7 @@ TEST_F(file_manager_test, can_evict_file) {
EXPECT_CALL(mp, upload_file(_, _, _)).WillOnce(Return(api_error::success));
if (not open_file->is_write_supported()) {
EXPECT_EQ(api_error::success, mgr.get_open_file(handle, true, open_file));
EXPECT_TRUE(mgr.get_open_file(handle, true, open_file));
}
data_buffer data{{0, 1, 1}};
@ -922,7 +922,7 @@ TEST_F(file_manager_test, evict_file_fails_if_file_is_uploading) {
});
if (not open_file->is_write_supported()) {
EXPECT_EQ(api_error::success, mgr.get_open_file(handle, true, open_file));
EXPECT_TRUE(mgr.get_open_file(handle, true, open_file));
}
data_buffer data{{0, 1, 1}};