mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-20 06:30:43 +00:00
Do not explicitly launch wal_proposer: rely on BgWorkerStart_RecoveryFinished
This commit is contained in:
committed by
Mikhail Kot
parent
2e35475c9a
commit
32e3b7dfd2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user