Skip to content
Snippets Groups Projects
Commit 94885ec4 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

change(test_postgresql): reduce sleep delay in replication check

parent dcec9506
No related branches found
No related tags found
No related merge requests found
...@@ -348,7 +348,7 @@ def check_replication(primary: dict, standby: dict) -> bool: ...@@ -348,7 +348,7 @@ def check_replication(primary: dict, standby: dict) -> bool:
try: try:
primary_psql = primary_client.cursor() primary_psql = primary_client.cursor()
primary_psql.execute("CREATE TABLE es_test (id serial PRIMARY KEY);") primary_psql.execute("CREATE TABLE es_test (id serial PRIMARY KEY);")
time.sleep(1) time.sleep(0.3)
standby_psql = primary_client.cursor() standby_psql = primary_client.cursor()
standby_psql.execute("SELECT * FROM es_test;") standby_psql.execute("SELECT * FROM es_test;")
primary_psql.execute("DROP TABLE es_test;") primary_psql.execute("DROP TABLE es_test;")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment