In Spring webflux tests I was having this timeout out issue and I wanted to increase timeout in the webclient


java.lang.IllegalStateException: Timeout on blocking read for 5000 MILLISECONDS

	at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(
	at reactor.core.publisher.Mono.block(
	at org.springframework.test.web.reactive.server.DefaultWebTestClient$


By default, the WebTestClient will be timeout after 5 seconds. But we can modify this time out using

@AutoConfigureWebTestClient(timeout = "10000")