Skip to content

Commit

Permalink
fixup tests due to new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Dec 18, 2023
1 parent 9b468b2 commit ce692a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_runner/regress/test_broken_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_local_corruption(neon_env_builder: NeonEnvBuilder):

env.pageserver.allowed_errors.extend(
[
".*layer loading failed:.*",
".*get_value_reconstruct_data for layer .*",
".*could not find data for key.*",
".*is not active. Current state: Broken.*",
".*will not become active. Current state: Broken.*",
Expand Down Expand Up @@ -83,7 +83,7 @@ def test_local_corruption(neon_env_builder: NeonEnvBuilder):
# (We don't check layer file contents on startup, when loading the timeline)
#
# This will change when we implement checksums for layers
with pytest.raises(Exception, match="layer loading failed:") as err:
with pytest.raises(Exception, match="get_value_reconstruct_data for layer ") as err:
pg2.start()
log.info(
f"As expected, compute startup failed for timeline {tenant2}/{timeline2} with corrupt layers: {err}"
Expand Down

0 comments on commit ce692a6

Please sign in to comment.