From dcdeb033fb372471a5cbf618e609edbfc0202de2 Mon Sep 17 00:00:00 2001 From: Johannes Herrmann Date: Tue, 15 Oct 2024 14:02:56 +0200 Subject: [PATCH] Fixed test --- test/QueryPlannerTest.cpp | 6 +++--- test/QueryPlannerTestHelpers.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/QueryPlannerTest.cpp b/test/QueryPlannerTest.cpp index 1a0a01dbcf..bd10b3534a 100644 --- a/test/QueryPlannerTest.cpp +++ b/test/QueryPlannerTest.cpp @@ -998,7 +998,7 @@ TEST(QueryPlanner, PathSearchWithEdgeProperties) { TEST(QueryPlanner, PathSearchWithMultipleEdgePropertiesAndTargets) { auto scan = h::IndexScanFromStrings; - auto join = h::Join; + auto join = h::UnorderedJoins; auto qec = ad_utility::testing::getQec( " ." " ." @@ -1041,8 +1041,8 @@ TEST(QueryPlanner, PathSearchWithMultipleEdgePropertiesAndTargets) { h::PathSearch( config, true, true, h::Sort(join(scan("?start", "", "?middle"), - join(scan("?middle", "", "?middleAttribute"), - scan("?middle", "", "?end"))))), + scan("?middle", "", "?middleAttribute"), + scan("?middle", "", "?end")))), qec); } diff --git a/test/QueryPlannerTestHelpers.h b/test/QueryPlannerTestHelpers.h index 98a8db78d6..2457284c87 100644 --- a/test/QueryPlannerTestHelpers.h +++ b/test/QueryPlannerTestHelpers.h @@ -315,8 +315,7 @@ inline auto PathSearch = [](PathSearchConfiguration config, bool sourceBound, bool targetBound, const std::same_as auto&... childMatchers) { return RootOperation<::PathSearch>(AllOf( - Property("getChildren", &Operation::getChildren, - ElementsAre(Pointee(childMatchers)...)), + children(childMatchers...), AD_PROPERTY(PathSearch, getConfig, PathSearchConfigMatcher(config)), AD_PROPERTY(PathSearch, isSourceBound, Eq(sourceBound)), AD_PROPERTY(PathSearch, isTargetBound, Eq(targetBound))));