mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-16 04:30:38 +00:00
test_broken_timelines: regex needs changing due to changes in this PR
The regex is different because tenant2 is not broken anymore with this PR, because we allow empty timeline dirs to load
This commit is contained in:
@@ -90,9 +90,8 @@ def test_broken_timeline(neon_env_builder: NeonEnvBuilder):
|
||||
# Second timeline has no ancestors, only the metadata file and no layer files locally,
|
||||
# and we don't have the remote storage enabled. It is loaded into memory, but getting
|
||||
# the basebackup from it will fail.
|
||||
with pytest.raises(
|
||||
Exception, match=f"Tenant {tenant2} will not become active. Current state: Broken"
|
||||
) as err:
|
||||
# TODO this needed changing beacuse we no longer fail load if the layer map is empty. The tenant is active now but basebackup fails.
|
||||
with pytest.raises(Exception, match=r".*base backup failed") as err:
|
||||
pg2.start()
|
||||
log.info(f"As expected, compute startup failed for timeline with missing layers: {err}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user