From 84288b7cde889a3e3c7372b270bac750dffc1f80 Mon Sep 17 00:00:00 2001 From: Michal Maslanka Date: Thu, 15 Jun 2023 11:03:56 +0200 Subject: [PATCH] tests: fixed assertion checking error content Verifiable consumer may fail with two different messages when consuming while the topic is being deleted. Accounting for all the messages in the assertion checking error reporting. Fixes: #11306 Signed-off-by: Michal Maslanka --- tests/rptest/tests/simple_e2e_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rptest/tests/simple_e2e_test.py b/tests/rptest/tests/simple_e2e_test.py index 7bdeaf08060ff..cd3f87f962a51 100644 --- a/tests/rptest/tests/simple_e2e_test.py +++ b/tests/rptest/tests/simple_e2e_test.py @@ -67,4 +67,5 @@ def test_consumer_interruption(self): error = e assert error is not None - assert "Consumed from an unexpected" in str(error) + assert "Consumed from an unexpected" in str( + error) or "is behind the current committed offset" in str(error)