mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 00:50:36 +00:00
Make mypy happy
This commit is contained in:
committed by
Mikhail Kot
parent
04baa8bc3b
commit
2ed5ba7ab2
@@ -4,6 +4,8 @@ File with secondary->primary promotion testing.
|
||||
This far, only contains a test that we don't break and that the data is persisted.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import psycopg2
|
||||
from fixtures.neon_fixtures import Endpoint, NeonEnv, wait_replica_caughtup
|
||||
from fixtures.pg_version import PgVersion
|
||||
@@ -56,7 +58,7 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion):
|
||||
secondary_cur = secondary_conn.cursor()
|
||||
|
||||
if env.pg_version is PgVersion.V14:
|
||||
signalfile = secondary.pgdata_dir / "standby.signal"
|
||||
signalfile = os.path.join(secondary.pgdata_dir, "standby.signal")
|
||||
assert signalfile.exists()
|
||||
signalfile.unlink()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user