• Andy Wilkinson's avatar
    Await registration of http.server.requests meter · c0bb6ff6
    Andy Wilkinson authored
    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-23863
    c0bb6ff6
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...