Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBuRo committed Oct 15, 2024
1 parent 42be542 commit dcdeb03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/QueryPlannerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"<x> <p1> <m1>."
"<m1> <p3> <n1>."
Expand Down Expand Up @@ -1041,8 +1041,8 @@ TEST(QueryPlanner, PathSearchWithMultipleEdgePropertiesAndTargets) {
h::PathSearch(
config, true, true,
h::Sort(join(scan("?start", "<p1>", "?middle"),
join(scan("?middle", "<p3>", "?middleAttribute"),
scan("?middle", "<p2>", "?end"))))),
scan("?middle", "<p3>", "?middleAttribute"),
scan("?middle", "<p2>", "?end")))),
qec);
}

Expand Down
3 changes: 1 addition & 2 deletions test/QueryPlannerTestHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ inline auto PathSearch =
[](PathSearchConfiguration config, bool sourceBound, bool targetBound,
const std::same_as<QetMatcher> 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))));
Expand Down

0 comments on commit dcdeb03

Please sign in to comment.