File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
rsocket-core/src/test/java/io/rsocket/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ public void ensureUnboundedProcessorDisposesQueueProperly(boolean withFusionEnab
146
146
147
147
@ RepeatedTest (
148
148
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" ,
150
150
value = 100000 )
151
151
@ Timeout (10 )
152
- public void ensureUnboundedProcessorDisposesQueueProperlyAsyncMode () {
152
+ public void ensuresAsyncFusionAndDisposureHasNoDeadlocl () {
153
153
final LeaksTrackingByteBufAllocator allocator =
154
154
LeaksTrackingByteBufAllocator .instrument (ByteBufAllocator .DEFAULT );
155
155
final UnboundedProcessor <ByteBuf > unboundedProcessor = new UnboundedProcessor <>();
@@ -175,7 +175,7 @@ public void ensureUnboundedProcessorDisposesQueueProperlyAsyncMode() {
175
175
unboundedProcessor ::dispose ,
176
176
Schedulers .elastic ());
177
177
178
- assertSubscriber .values ().forEach (ReferenceCountUtil ::safeRelease );
178
+ assertSubscriber .await (). values ().forEach (ReferenceCountUtil ::safeRelease );
179
179
180
180
allocator .assertHasNoLeaks ();
181
181
}
You can’t perform that action at this time.
0 commit comments