WIP: WebClient
[facebook-errors] / 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();