mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 08:52:56 +00:00
Make mypy happy
This commit is contained in:
committed by
Mikhail Kot
parent
04baa8bc3b
commit
2ed5ba7ab2
@@ -434,7 +434,7 @@ pub fn empty_shmem() -> crate::bindings::WalproposerShmemState {
|
||||
donor_conninfo: [0; 1024],
|
||||
donor_lsn: 0,
|
||||
mutex: 0,
|
||||
bgw_started: false,
|
||||
bgw_started: false,
|
||||
mineLastElectedTerm: crate::bindings::pg_atomic_uint64 { value: 0 },
|
||||
backpressureThrottlingTime: crate::bindings::pg_atomic_uint64 { value: 0 },
|
||||
currentClusterSize: crate::bindings::pg_atomic_uint64 { value: 0 },
|
||||
|
||||
@@ -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