Make ruff happy

This commit is contained in:
Konstantin Knizhnik
2025-05-18 20:45:01 +03:00
parent a5d45bceed
commit a3d88258a7

View File

@@ -5,12 +5,11 @@ This far, only contains a test that we don't break and that the data is persiste
"""
import psycopg2
from fixtures.neon_fixtures import Endpoint, NeonEnv, wait_replica_caughtup
from fixtures.pg_version import PgVersion
from fixtures.log_helper import log
from pytest import raises
def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion):
"""
Test that a replica safely promotes, and can commit data updates which
@@ -77,7 +76,7 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion):
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 pg_reload_conf()")
new_primary = secondary
old_primary = primary