Do not explicitly launch wal_proposer: rely on BgWorkerStart_RecoveryFinished

This commit is contained in:
Konstantin Knizhnik
2025-05-27 17:39:39 +03:00
committed by Mikhail Kot
parent 2e35475c9a
commit 32e3b7dfd2
4 changed files with 13 additions and 51 deletions

View File

@@ -52,17 +52,15 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion):
wait_replica_caughtup(primary, secondary)
primary.stop()
secondary_conn = secondary.connect()
secondary_cur = secondary_conn.cursor()
secondary_cur.execute("SELECT * FROM pg_promote()")
assert secondary_cur.fetchone() == (True,)
secondary_conn = secondary.connect()
secondary_cur = secondary_conn.cursor()
secondary_cur.execute(f"alter system set neon.safekeepers='{safekeepers}'")
secondary_cur.execute("select pg_reload_conf()")
secondary_cur.execute("SELECT * FROM pg_promote()")
assert secondary_cur.fetchone() == (True,)
new_primary = secondary
old_primary = primary