Skip to content

Commit

Permalink
tests: fixed assertion checking error content
Browse files Browse the repository at this point in the history
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 <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Jun 15, 2023
1 parent 97a9104 commit 84288b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/rptest/tests/simple_e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 84288b7

Please sign in to comment.