[unit test] Complete all providers unit tests #12
Some checks failed
Blockstorage/repertory/pipeline/head There was a failure building this commit
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
2025-09-16 10:42:00 -05:00
parent 816d242234
commit 72495c891b

View File

@@ -803,7 +803,7 @@ static void get_filesystem_item(i_provider &provider) {
std::uint64_t size{}; std::uint64_t size{};
res = provider.get_file_size(api_path, size); res = provider.get_file_size(api_path, size);
ASSERT_EQ(api_error::success, res); ASSERT_EQ(api_error::success, res);
EXPECT_EQ(size, fsi.file_size); EXPECT_EQ(size, fsi.size);
return; return;
} }
@@ -821,7 +821,7 @@ static void get_filesystem_item(i_provider &provider) {
EXPECT_EQ(api_error::success, res); EXPECT_EQ(api_error::success, res);
EXPECT_EQ(api_path, fsi.api_path); EXPECT_EQ(api_path, fsi.api_path);
EXPECT_FALSE(fsi.directory); EXPECT_FALSE(fsi.directory);
EXPECT_EQ(*src.size(), fsi.file_size); EXPECT_EQ(*src.size(), fsi.size);
res = provider.remove_file(api_path); res = provider.remove_file(api_path);
EXPECT_EQ(api_error::success, res); EXPECT_EQ(api_error::success, res);