Skip to content

Commit 10e91d4

Browse files
committed
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
1 parent df9d47a commit 10e91d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-pulsar/src/test/java/org/springframework/pulsar/reader/PulsarReaderStartMessageIdTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void startMessageIdMissing() {
7979
PulsarReaderStartMessageIdMissing.class))
8080
.rootCause()
8181
.isInstanceOf(IllegalArgumentException.class)
82-
.hasMessage(
82+
.hasMessageStartingWith(
8383
"Start message id or start message from roll back must be specified but they cannot be specified at the same time");
8484
}
8585

0 commit comments

Comments
 (0)