Make PulsarReaderStartMessageIdTests more lenient

This commit makes the PulsarReaderStartMessageIdTests more lenient
as the test was previously asserting an exact exception message
but the message has changed slightly in Pulsar 4.0.x to include
more information about the error.

See #933
This commit is contained in:
Chris Bono
2024-12-14 17:37:24 -06:00
parent df9d47a6a3
commit 10e91d46d0

View File

@@ -79,7 +79,7 @@ public class PulsarReaderStartMessageIdTests extends PulsarReaderTestsBase {
PulsarReaderStartMessageIdMissing.class))
.rootCause()
.isInstanceOf(IllegalArgumentException.class)
.hasMessage(
.hasMessageStartingWith(
"Start message id or start message from roll back must be specified but they cannot be specified at the same time");
}