Skip to content

Commit 350d522

Browse files
committed
Improve error message of flushWithNullOutputStream test
1 parent 5fc4dac commit 350d522

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/net/logstash/logback/appender/DelegatingAsyncDisruptorAppenderTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ public void flushWithNullOutputStream() {
215215
outputStreamDelegate.setOutputStream(null);
216216
appender.doAppend(event);
217217

218-
assertThat(appender.getStatusManager().getCount()).isZero();
218+
// Test the status list, rather than getCount(), so a helpful error message is generated if the list is not empty
219+
assertThat(appender.getStatusManager().getCopyOfStatusList()).isEmpty();
219220
}
220221

221222

0 commit comments

Comments
 (0)