Skip to content

Commit

Permalink
Merge branch '3.1.x'
Browse files Browse the repository at this point in the history
Closes gh-38610
  • Loading branch information
mhalbritter committed Nov 30, 2023
2 parents 8de81cb + 203cd54 commit 6cb9af1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import io.micrometer.core.instrument.simple.SimpleConfig;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import jakarta.servlet.DispatcherType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -99,6 +100,11 @@ class MetricsIntegrationTests {
@Autowired
private MeterRegistry registry;

@BeforeEach
void setUp() {
this.registry.clear();
}

@SuppressWarnings("unchecked")
@Test
void restTemplateIsInstrumented() {
Expand Down

0 comments on commit 6cb9af1

Please sign in to comment.