.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();
StepVerifier.create(result)
.expectError(Exception.class)
- .verify(Duration.ofSeconds(90));
+ .verify(Duration.ofSeconds(3));
server
.enqueue(new MockResponse()