mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
See #7718. Fix it by renaming all `types.py` to `common_types.py`. Additionally, add an advert for using `allowed_errors.py` to test any added regex.
12 lines
459 B
Python
12 lines
459 B
Python
from fixtures.common_types import TenantId, TimelineId
|
|
from fixtures.log_helper import log
|
|
from fixtures.safekeeper.http import SafekeeperHttpClient
|
|
|
|
|
|
def are_walreceivers_absent(
|
|
sk_http_cli: SafekeeperHttpClient, tenant_id: TenantId, timeline_id: TimelineId
|
|
):
|
|
status = sk_http_cli.timeline_status(tenant_id, timeline_id)
|
|
log.info(f"waiting for walreceivers to be gone, currently {status.walreceivers}")
|
|
return len(status.walreceivers) == 0
|