Silence test failure with gRPC

The error message is just a little different with gRPC.
This commit is contained in:
Heikki Linnakangas
2025-07-31 22:02:30 +03:00
parent ede37c5346
commit 50302499f5

View File

@@ -157,6 +157,7 @@ def test_cannot_create_endpoint_on_non_uploaded_timeline(neon_env_builder: NeonE
[
".*request{method=POST path=/v1/tenant/.*/timeline request_id=.*}: request was dropped before completing.*",
".*page_service_conn_main.*: query handler for 'basebackup .* ERROR: Not found: Timeline",
".*request failed with Unavailable: Timeline .* is not active",
]
)
ps_http = env.pageserver.http_client()
@@ -194,7 +195,7 @@ def test_cannot_create_endpoint_on_non_uploaded_timeline(neon_env_builder: NeonE
env.neon_cli.mappings_map_branch(initial_branch, env.initial_tenant, env.initial_timeline)
with pytest.raises(RuntimeError, match="ERROR: Not found: Timeline"):
with pytest.raises(RuntimeError, match=f"Timeline {env.initial_tenant}/{env.initial_timeline} is not active"):
env.endpoints.create_start(
initial_branch, tenant_id=env.initial_tenant, basebackup_request_tries=2
)