Adapt to method name change in Mono

This commit is contained in:
Rossen Stoyanchev 2017-09-05 13:57:20 -04:00
parent 0702898836
commit fc0841c60f
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegratio
Mono<Integer> requestSizeMono = request.getBody().
reduce(0, (integer, dataBuffer) -> integer +
dataBuffer.readableByteCount()).
doAfterTerminate((size, throwable) -> {
doOnSuccessOrError((size, throwable) -> {
assertNull(throwable);
assertEquals(REQUEST_SIZE, (long) size);
});

View File

@ -73,7 +73,7 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
.subscribeWith(output)
.doOnNext(s -> logger.debug("inbound " + s))
.then()
.doOnTerminate((aVoid, ex) ->
.doOnSuccessOrError((aVoid, ex) ->
logger.debug("Done with " + (ex != null ? ex.getMessage() : "success")));
})
.block(Duration.ofMillis(5000));