Skip to content

Commit f0d6f28

Browse files
committed
imrpoves test
Signed-off-by: Oleh Dokuka <[email protected]> Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 8c55fe7 commit f0d6f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rsocket-core/src/test/java/io/rsocket/internal/UnboundedProcessorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ public void ensureUnboundedProcessorDisposesQueueProperly(boolean withFusionEnab
146146

147147
@RepeatedTest(
148148
name =
149-
"Ensures that racing between onNext | dispose | cancel | request(n) will not cause any issues and leaks in async backFused mode",
149+
"Ensures that racing between onNext + dispose | downstream async drain) should not cause any issues and leaks",
150150
value = 100000)
151151
@Timeout(10)
152-
public void ensureUnboundedProcessorDisposesQueueProperlyAsyncMode() {
152+
public void ensuresAsyncFusionAndDisposureHasNoDeadlocl() {
153153
final LeaksTrackingByteBufAllocator allocator =
154154
LeaksTrackingByteBufAllocator.instrument(ByteBufAllocator.DEFAULT);
155155
final UnboundedProcessor<ByteBuf> unboundedProcessor = new UnboundedProcessor<>();
@@ -175,7 +175,7 @@ public void ensureUnboundedProcessorDisposesQueueProperlyAsyncMode() {
175175
unboundedProcessor::dispose,
176176
Schedulers.elastic());
177177

178-
assertSubscriber.values().forEach(ReferenceCountUtil::safeRelease);
178+
assertSubscriber.await().values().forEach(ReferenceCountUtil::safeRelease);
179179

180180
allocator.assertHasNoLeaks();
181181
}

0 commit comments

Comments
 (0)