Skip to content

Commit

Permalink
imrpoves test
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <odokuka@vmware.com>
Signed-off-by: Oleh Dokuka <shadowgun@i.ua>
  • Loading branch information
OlegDokuka committed Feb 26, 2021
1 parent 8c55fe7 commit f0d6f28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ public void ensureUnboundedProcessorDisposesQueueProperly(boolean withFusionEnab

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

assertSubscriber.values().forEach(ReferenceCountUtil::safeRelease);
assertSubscriber.await().values().forEach(ReferenceCountUtil::safeRelease);

allocator.assertHasNoLeaks();
}
Expand Down

0 comments on commit f0d6f28

Please sign in to comment.