tests: use tenant_create() helper in test_bulk_insert (#6064)

## Problem

Since #5449 we enable generations in tests by default. Running
benchmarks was missed while merging that PR, and there was one that
needed updating.

## Summary of changes

Make test_bulk_insert use the proper generation-aware helper for tenant
creation.
This commit is contained in:
John Spray
2023-12-07 14:52:16 +00:00
committed by GitHub
parent e89e41f8ba
commit 880663f6bc

View File

@@ -57,7 +57,7 @@ def measure_recovery_time(env: NeonCompare):
# when we "create" the Tenant again, we will replay the WAL from the beginning.
client.tenant_delete(env.tenant)
wait_tenant_status_404(client, env.tenant, iterations=60, interval=0.5)
client.tenant_create(new_tenant_id=env.tenant)
env.env.pageserver.tenant_create(tenant_id=env.tenant)
# Measure recovery time
with env.record_duration("wal_recovery"):