asukaminato0721 commented on code in PR #6503: URL: https://github.com/apache/opendal/pull/6503#discussion_r2277881181
########## bindings/cpp/tests/behavior/list_test.cpp: ########## @@ -93,14 +97,27 @@ OPENDAL_TEST_F(ListBehaviorTest, ListDirectoryWithFiles) { } } - EXPECT_EQ(actual_paths, expected_paths); + // All files should be present + for (const auto& expected_path : expected_paths) { + EXPECT_TRUE(actual_paths.count(expected_path) > 0) << "Missing file: " << expected_path; + } + + // Directory may or may not be included depending on service behavior + if (actual_paths.count(dir_path) > 0) { + EXPECT_EQ(entries.size(), 4); // directory + 3 files + } else { + EXPECT_EQ(entries.size(), 3); // only 3 files + } } // Test listing nested directories OPENDAL_TEST_F(ListBehaviorTest, ListNestedDirectories) { OPENDAL_SKIP_IF_UNSUPPORTED_WRITE(); OPENDAL_SKIP_IF_UNSUPPORTED_CREATE_DIR(); OPENDAL_SKIP_IF_UNSUPPORTED_LIST(); + if (TestConfig::instance().service_name() == "alluxio") { + GTEST_SKIP() << "Alluxio has different list behavior that includes unexpected paths"; + } Review Comment: ```suggestion ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@opendal.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org