From b4cf3b18faccdd96c55b95e7aa726210a8a2d770 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Tue, 16 May 2023 15:31:55 +0300 Subject: [PATCH] test: assert that allowed error appears in log --- test_runner/regress/test_timeline_delete.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test_runner/regress/test_timeline_delete.py b/test_runner/regress/test_timeline_delete.py index 28d5a1d0fb..f44921d4c4 100644 --- a/test_runner/regress/test_timeline_delete.py +++ b/test_runner/regress/test_timeline_delete.py @@ -401,6 +401,13 @@ def test_concurrent_timeline_delete_if_first_stuck_at_index_upload( env.pageserver.allowed_errors.append( f".*{child_timeline_id}.*Ignoring new state, equal to the existing one: Stopping" ) + + def second_call_attempt(): + assert env.pageserver.log_contains( + f".*{child_timeline_id}.*Ignoring new state, equal to the existing one: Stopping" + ) + + wait_until(50, 0.1, second_call_attempt) finally: log.info("joining 1st thread") # in any case, make sure the lifetime of the thread is bounded to this test