mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Revert "Remove sleep that appears to no longer be needed"
This reverts commit 6e8481bfff.
See gh-48049
This commit is contained in:
+1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user