Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acquamarin committed Jan 3, 2023
1 parent e7ff8a2 commit 6cdf9d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/runner/e2e_update_rel_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ TEST_F(UpdateRelTest, UpdateLargeList) {
sortAndCheckTestResults(actualResult, expectedResult);
}

TEST_F(UpdateRelTest, UpdateEachElemOfLargeList) {
TEST_F(UpdateRelTest, UpdateEachElemOfList) {
vector<string> expectedResult;
for (auto i = 1u; i <= 2500; i++) {
ASSERT_TRUE(conn->query(getUpdateRelQuery("person" /* srcTable */, "person" /* dstTable */,
"knows" /* relation */, 0 /* srcID */, i /* dstID */,
for (auto i = 0u; i <= 50; i++) {
ASSERT_TRUE(conn->query(getUpdateRelQuery("animal" /* srcTable */, "person" /* dstTable */,
"knows" /* relation */, i /* srcID */, 0 /* dstID */,
"set e.length = " + to_string(i)))
->isSuccess());
expectedResult.push_back(to_string(i));
}
auto result = conn->query("MATCH (:person)-[e:knows]->(p:person) return e.length");
auto result = conn->query("MATCH (:animal)-[e:knows]->(p:person) return e.length");
auto actualResult = TestHelper::convertResultToString(*result);
sortAndCheckTestResults(actualResult, expectedResult);
}
Expand Down

0 comments on commit 6cdf9d4

Please sign in to comment.