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:
@ -822,9 +822,11 @@ TEST_F(file_manager_test, evict_file_fails_if_unable_to_get_filesystem_item) {
|
|||||||
file_manager mgr(*cfg, mp);
|
file_manager mgr(*cfg, mp);
|
||||||
|
|
||||||
EXPECT_CALL(mp, get_filesystem_item)
|
EXPECT_CALL(mp, get_filesystem_item)
|
||||||
.WillRepeatedly(
|
.WillRepeatedly([](const std::string & /* api_path */,
|
||||||
[](const std::string &api_path, bool directory,
|
bool /* directory */,
|
||||||
filesystem_item &fsi) -> api_error { return api_error::error; });
|
filesystem_item & /* fsi */) -> api_error {
|
||||||
|
return api_error::error;
|
||||||
|
});
|
||||||
|
|
||||||
EXPECT_FALSE(mgr.evict_file("/test_open.txt"));
|
EXPECT_FALSE(mgr.evict_file("/test_open.txt"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user