diff --git a/test_runner/batch_others/test_branch_behind.py b/test_runner/batch_others/test_branch_behind.py index 333d685d15..0703daa6a8 100644 --- a/test_runner/batch_others/test_branch_behind.py +++ b/test_runner/batch_others/test_branch_behind.py @@ -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