mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 22:10:39 +00:00
test: shutdown endpoints before deletion (#6619)
this avoids a page_service error in the log sometimes. keeping the endpoint running while deleting has no function for this test.
This commit is contained in:
@@ -651,9 +651,7 @@ def test_timeline_delete_works_for_remote_smoke(
|
||||
timeline_ids = [env.initial_timeline]
|
||||
for i in range(2):
|
||||
branch_timeline_id = env.neon_cli.create_branch(f"new{i}", "main")
|
||||
pg = env.endpoints.create_start(f"new{i}")
|
||||
|
||||
with pg.cursor() as cur:
|
||||
with env.endpoints.create_start(f"new{i}") as pg, pg.cursor() as cur:
|
||||
cur.execute("CREATE TABLE f (i integer);")
|
||||
cur.execute("INSERT INTO f VALUES (generate_series(1,1000));")
|
||||
current_lsn = Lsn(query_scalar(cur, "SELECT pg_current_wal_flush_lsn()"))
|
||||
|
||||
Reference in New Issue
Block a user