Revert "Remove sleep that appears to no longer be needed"

This reverts commit 6e8481bfff.

See gh-48049
This commit is contained in:
Andy Wilkinson
2025-11-11 10:22:08 +00:00
parent 8584f604e3
commit bbfd9f892b
@@ -84,6 +84,7 @@ class JerseyServerMetricsAutoConfigurationTests {
void httpRequestsAreTimed() {
this.webContextRunner.withUserConfiguration(MetricsConfiguration.class).run((context) -> {
doRequest(context);
Thread.sleep(500);
MeterRegistry registry = context.getBean(MeterRegistry.class);
Timer timer = registry.get("http.server.requests").tag("uri", "/users/{id}").timer();
assertThat(timer.count()).isOne();