fix
This commit is contained in:
@ -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}};
|
||||
|
Reference in New Issue
Block a user