Skip to content

Commit 898e6b7

Browse files
committed
enables local transport resumability tests
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 02c1943 commit 898e6b7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

rsocket-test/src/main/java/io/rsocket/test/TransportTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public TransportPair(
568568
final RSocketConnector rSocketConnector =
569569
RSocketConnector.create()
570570
.payloadDecoder(PayloadDecoder.ZERO_COPY)
571-
.keepAlive(Duration.ofMillis(Integer.MAX_VALUE), Duration.ofMillis(Integer.MAX_VALUE))
571+
.keepAlive(Duration.ofMillis(10), Duration.ofHours(1))
572572
.interceptors(
573573
registry -> {
574574
if (runClientWithAsyncInterceptors && !withResumability) {

rsocket-transport-local/src/main/java/io/rsocket/transport/local/LocalDuplexConnection.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,11 @@ public void onSubscribe(Subscription s) {
136136

137137
@Override
138138
public void onNext(ByteBuf buf) {
139-
actual.onNext(buf);
140-
buf.release();
139+
try {
140+
actual.onNext(buf);
141+
} finally {
142+
buf.release();
143+
}
141144
}
142145

143146
@Override

rsocket-transport-local/src/test/java/io/rsocket/transport/local/LocalResumableTransportTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
import io.rsocket.test.TransportTest;
2020
import java.time.Duration;
2121
import java.util.UUID;
22-
import org.junit.jupiter.api.Disabled;
2322

24-
@Disabled("leaking somewhere for no clear reason")
2523
final class LocalResumableTransportTest implements TransportTest {
2624

2725
private final TransportPair transportPair =

0 commit comments

Comments
 (0)