From c50f2c262130933d0927ff21e8a839f11f6b95ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Benjamin=20Antal?= Date: Mon, 20 Feb 2023 12:35:01 +0100 Subject: [PATCH] Fix e2e tests --- .../distributed_queries/distributed_expand_one.py | 15 ++++++++++++--- .../distributed_queries/distributed_queries.py | 10 ++++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/tests/e2e/distributed_queries/distributed_expand_one.py b/tests/e2e/distributed_queries/distributed_expand_one.py index 9d3d81074..62a09e1e7 100644 --- a/tests/e2e/distributed_queries/distributed_expand_one.py +++ b/tests/e2e/distributed_queries/distributed_expand_one.py @@ -13,7 +13,12 @@ import sys import pytest -from common import connection, execute_and_fetch_all, has_n_result_row, wait_for_shard_manager_to_initialize +from common import ( + connection, + execute_and_fetch_all, + has_n_result_row, + wait_for_shard_manager_to_initialize, +) def test_sequenced_expand_one(connection): @@ -28,8 +33,12 @@ def test_sequenced_expand_one(connection): results = execute_and_fetch_all(cursor, "MATCH (n)-[:TO]->(m)-[:TO]->(l) RETURN n,m,l") assert len(results) == 1 n, m, l = results[0] - assert n.properties["property"] == 1 - assert m.properties["property"] == 2 + assert ( + len(n.properties) == 0 + ), "we don't return any properties of the node received from expansion and the bolt layer doesn't serialize the primary key of vertices" + assert ( + len(m.properties) == 0 + ), "we don't return any properties of the node received from expansion and the bolt layer doesn't serialize the primary key of vertices" assert l.properties["property"] == 3 diff --git a/tests/e2e/distributed_queries/distributed_queries.py b/tests/e2e/distributed_queries/distributed_queries.py index b4b6324d9..7b98598a3 100644 --- a/tests/e2e/distributed_queries/distributed_queries.py +++ b/tests/e2e/distributed_queries/distributed_queries.py @@ -9,11 +9,13 @@ # by the Apache License, Version 2.0, included in the file # licenses/APL.txt. -import typing -import mgclient import sys -import pytest import time +import typing + +import mgclient +import pytest + from common import * @@ -35,7 +37,7 @@ def test_vertex_creation_and_scanall(connection): assert len(results) == 9 for (n, r, m) in results: n_props = n.properties - assert len(n_props) == 1, "n is not expected to have properties, update the test!" + assert len(n_props) == 0, "n is not expected to have properties, update the test!" assert len(n.labels) == 0, "n is not expected to have labels, update the test!" assert r.type == "TO"