From cd4fdd75d8dc776791ed1382270db68e2e75a2a6 Mon Sep 17 00:00:00 2001 From: Matthias van de Meent Date: Fri, 28 Jun 2024 17:37:48 +0200 Subject: [PATCH] Make sure we only delete a tenant we've created. --- test_runner/regress/test_pageserver_broken_handling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_runner/regress/test_pageserver_broken_handling.py b/test_runner/regress/test_pageserver_broken_handling.py index 526ac40961..4568da24d9 100644 --- a/test_runner/regress/test_pageserver_broken_handling.py +++ b/test_runner/regress/test_pageserver_broken_handling.py @@ -15,7 +15,8 @@ def test_pageserver_breaks_while_running(neon_simple_env: NeonEnv): ps_http = ps.http_client() ps_http.is_testing_enabled_or_skip() - env.neon_cli.create_branch("test_config", "empty") + (tid, tlid) = env.neon_cli.create_tenant() + env.neon_cli.create_branch("test_config", tenant_id=tid) # We don't want to have any racy behaviour with autovacuum IOs ep = env.endpoints.create_start( @@ -37,7 +38,7 @@ def test_pageserver_breaks_while_running(neon_simple_env: NeonEnv): """ ) - ps_http.tenant_detach(ep.tenant_id) + ps_http.tenant_detach(tid) # create a new connection to PS, this will cause errors. with closing(ep.connect()) as conn: