mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
distinguish failures for pre-initdb lsn and pre-ancestor lsn branching in test_branch_behind
This commit is contained in:
committed by
Dmitry Rodionov
parent
5df21e1058
commit
602ccb7d5f
@@ -109,6 +109,10 @@ def test_branch_behind(zenith_env_builder: ZenithEnvBuilder):
|
||||
|
||||
# branch at pre-initdb lsn
|
||||
with pytest.raises(Exception, match="invalid branch start lsn"):
|
||||
env.zenith_cli(["branch", "test_branch_preinitdb", "main@0/42"])
|
||||
|
||||
# branch at pre-ancestor lsn
|
||||
with pytest.raises(Exception, match="less than timeline ancestor lsn"):
|
||||
env.zenith_cli(["branch", "test_branch_preinitdb", "test_branch_behind@0/42"])
|
||||
|
||||
# check that we cannot create branch based on garbage collected data
|
||||
|
||||
Reference in New Issue
Block a user