Skip to content

Commit 734c4ec

Browse files
committed
Fix test on Java 20
Checking console output content, likely a problem with the formatting that makes the exact comparison fail.
1 parent 00c6be0 commit 734c4ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/rabbitmq/stream/perf/StreamPerfTestTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ String consoleErrorOutput() {
158158
void helpShouldReturnImmediately() throws Exception {
159159
run(builder().help());
160160
waitRunEnds();
161-
assertThat(consoleOutput()).contains("Usage: stream-perf-test");
161+
assertThat(consoleOutput())
162+
.contains("Display help information about the specified command")
163+
.contains("stream-perf-test");
162164
}
163165

164166
@Test

0 commit comments

Comments
 (0)