Adapt to method name change in Mono
This commit is contained in:
		
							parent
							
								
									0702898836
								
							
						
					
					
						commit
						fc0841c60f
					
				| 
						 | 
					@ -84,7 +84,7 @@ public class RandomHandlerIntegrationTests extends AbstractHttpHandlerIntegratio
 | 
				
			||||||
			Mono<Integer> requestSizeMono = request.getBody().
 | 
								Mono<Integer> requestSizeMono = request.getBody().
 | 
				
			||||||
					reduce(0, (integer, dataBuffer) -> integer +
 | 
										reduce(0, (integer, dataBuffer) -> integer +
 | 
				
			||||||
							dataBuffer.readableByteCount()).
 | 
												dataBuffer.readableByteCount()).
 | 
				
			||||||
					doAfterTerminate((size, throwable) -> {
 | 
										doOnSuccessOrError((size, throwable) -> {
 | 
				
			||||||
						assertNull(throwable);
 | 
											assertNull(throwable);
 | 
				
			||||||
						assertEquals(REQUEST_SIZE, (long) size);
 | 
											assertEquals(REQUEST_SIZE, (long) size);
 | 
				
			||||||
					});
 | 
										});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,7 +73,7 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
 | 
				
			||||||
							.subscribeWith(output)
 | 
												.subscribeWith(output)
 | 
				
			||||||
							.doOnNext(s -> logger.debug("inbound " + s))
 | 
												.doOnNext(s -> logger.debug("inbound " + s))
 | 
				
			||||||
							.then()
 | 
												.then()
 | 
				
			||||||
							.doOnTerminate((aVoid, ex) ->
 | 
												.doOnSuccessOrError((aVoid, ex) ->
 | 
				
			||||||
									logger.debug("Done with " + (ex != null ? ex.getMessage() : "success")));
 | 
														logger.debug("Done with " + (ex != null ? ex.getMessage() : "success")));
 | 
				
			||||||
				})
 | 
									})
 | 
				
			||||||
				.block(Duration.ofMillis(5000));
 | 
									.block(Duration.ofMillis(5000));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue