tests: prepare test_tenant_delete_stale_shards for --timelines-onto-safekeepers (#12198)

## Problem
The test creates an endpoint and deletes its tenant. The compute cannot
stop gracefully because it tries to write a checkpoint shutdown record
into the WAL, but the timeline had been already deleted from
safekeepers.

- Relates to https://github.com/neondatabase/neon/pull/11712

## Summary of changes
Stop the compute before deleting a tenant
This commit is contained in:
Dmitrii Kovalkov
2025-06-12 12:10:22 +04:00
committed by GitHub
parent 3d5e2bf685
commit 60dfdf39c7

View File

@@ -430,6 +430,7 @@ def test_tenant_delete_stale_shards(neon_env_builder: NeonEnvBuilder, pg_bin: Pg
workload.init()
workload.write_rows(256)
workload.validate()
workload.stop()
assert_prefix_not_empty(
neon_env_builder.pageserver_remote_storage,