From 602ccb7d5fcf030c485998f6aedb975cd715c481 Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Wed, 26 Jan 2022 13:38:57 +0300 Subject: [PATCH] distinguish failures for pre-initdb lsn and pre-ancestor lsn branching in test_branch_behind --- test_runner/batch_others/test_branch_behind.py | 4 ++++ 1 file changed, 4 insertions(+) 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