Skip to content

Commit

Permalink
added print statement to test_replication.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadQadora committed Sep 29, 2024
1 parent 4719d2f commit b12d5f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions omnistrate_tests/test_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ def test_stop_start(instance: OmnistrateFleetInstance, password: str):
instance.start(wait_for_ready=True)

graph = db.select_graph("test")

print("PASSED SELECT GRAPH")
result = graph.query("MATCH (n:Person) RETURN n")

print("PASSED QUERY")
if len(result.result_set) == 0:
raise Exception("Data lost after stop/start")

Expand All @@ -407,9 +407,9 @@ def test_zero_downtime(
try:
graph.query("CREATE (n:Person {name: 'Alice'})")
graph.ro_query("MATCH (n:Person {name: 'Alice'}) RETURN n")
except Exception as e:
except (ConnectionError) as e:
logging.info("THE CREATE COMMAND FAILED")
print("THE CREATE COMMAND FAILED")
print(e)
db.connection.close()
db = instance.create_connection(ssl=ssl, force_reconnect=True)
graph = db.select_graph("test")
Expand Down

0 comments on commit b12d5f2

Please sign in to comment.