spring-boot/spring-boot-project/spring-boot-actuator-autoconfigure
Andy Wilkinson b9516bc77c Await registration of http.server.requests meter
Previously, the test would make an HTTP request and, as soon as the
response was received, it would check the presence and value of the
http.server.requests meter. This create a race condition between the
meter being registered once the response had been flushed and the
meter's presence being checked. If the check won the race, the test
would fail.

This commit updates the test to wait for up to 5 seconds for the
meter to be present and have a count of 1, matching the single request
that has been made.

Fixes gh-23919
2020-10-27 15:54:22 +00:00
..
src Await registration of http.server.requests meter 2020-10-27 15:54:22 +00:00
pom.xml Await registration of http.server.requests meter 2020-10-27 15:54:22 +00:00