From a902b5472f66c3c2075540b17b9195cf0c699a69 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Tue, 23 Jan 2024 21:51:11 +0200 Subject: [PATCH] Add timeout to let replica start --- test_runner/regress/test_replication_lag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_runner/regress/test_replication_lag.py b/test_runner/regress/test_replication_lag.py index 2b638eb017..a7fee91356 100644 --- a/test_runner/regress/test_replication_lag.py +++ b/test_runner/regress/test_replication_lag.py @@ -1,3 +1,4 @@ +import time import threading from fixtures.log_helper import log @@ -33,6 +34,7 @@ def test_replication_lag(neon_simple_env: NeonEnv, pg_bin: PgBin): t.start() with env.endpoints.new_replica_start(origin=primary, endpoint_id="secondary") as secondary: + time.sleep(2) for _ in range(1, n_iterations): primary_lsn = primary.safe_psql_scalar( "SELECT pg_current_wal_flush_lsn()::text", log_query=False