WIP: WebClient
authorKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 15:31:18 +0000 (16:31 +0100)
committerKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 15:31:18 +0000 (16:31 +0100)
src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java

index c468590..b90e057 100644 (file)
@@ -103,7 +103,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest
             .filter((request, next) -> next.exchange(request).flatMap(response ->
             {
                                                        List<String> headerValues = response.headers().header("Foo");
-                                                       return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response)) :
+                                                       return headerValues.isEmpty() ? Mono.error(GraphApiException.create(response).block()) :
                                                                        Mono.just(response);
                                                }))
             .build();