Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed May 31, 2024
1 parent b4ae265 commit d45a0f4
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,11 @@ TEST_F(AbfsFileSystemTest, fileHandleWithProperties) {
std::make_unique<SimpleLRUCache<std::string, FileHandle>>(1),
std::make_unique<FileHandleGenerator>(hiveConfig));
FileProperties properties = {15 + kOneMB, 1};
auto fileHandle = factory.generate(fullFilePath, &properties);
readData(fileHandle->file.get());
}
auto fileHandleProperties = factory.generate(fullFilePath, &properties);
readData(fileHandleProperties->file.get());

TEST_F(AbfsFileSystemTest, fileHandleWithoutProperties) {
auto hiveConfig = AbfsFileSystemTest::hiveConfig(
{{"fs.azure.account.key.test.dfs.core.windows.net",
azuriteServer->connectionStr()}});
FileHandleFactory factory(
std::make_unique<SimpleLRUCache<std::string, FileHandle>>(1),
std::make_unique<FileHandleGenerator>(hiveConfig));
auto fileHandle = factory.generate(fullFilePath);
readData(fileHandle->file.get());
auto fileHandleWithoutProperties = factory.generate(fullFilePath);
readData(fileHandleWithoutProperties->file.get());
}

TEST_F(AbfsFileSystemTest, multipleThreadsWithReadFile) {
Expand Down

0 comments on commit d45a0f4

Please sign in to comment.