Skip to content

Commit

Permalink
added print
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadQadora committed Sep 26, 2024
1 parent 6f7730b commit fb38ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion omnistrate_tests/classes/omnistrate_fleet_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def create_connection(
cluster_error_retry_attempts=20,
retry=retry.Retry(
retries=20,
backoff=backoff.ExponentialBackoff(base=3),
backoff=backoff.ExponentialBackoff(base=5),
supported_errors=(
ConnectionRefusedError,
ConnectionError,
Expand Down
5 changes: 2 additions & 3 deletions omnistrate_tests/test_update_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,14 @@ def test_zero_downtime(
# Write some data to the DB
try:
graph.query("CREATE (n:Person {name: 'Alice'})")
except:
graph.ro_query("MATCH (n:Person {name: 'Alice'}) RETURN n")
except (ConnectionError, ReadOnlyError) as e:
logging.info("THE CREATE COMMAND FAILED")
print("THE CREATE COMMAND FAILED")
db.connection.close()
db = instance.create_connection(ssl=ssl, force_reconnect=True)
graph = db.select_graph("test")
continue
graph.ro_query("MATCH (n:Person {name: 'Alice'}) RETURN n")

time.sleep(3)
except Exception as e:
logging.exception(e)
Expand Down

0 comments on commit fb38ae0

Please sign in to comment.