File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 4444import org .jboss .shrinkwrap .api .asset .EmptyAsset ;
4545import org .jboss .shrinkwrap .api .spec .JavaArchive ;
4646import org .jboss .shrinkwrap .api .spec .WebArchive ;
47- import org .testng .annotations .BeforeTest ;
47+ import org .testng .annotations .BeforeMethod ;
4848import org .testng .annotations .Test ;
4949
5050import jakarta .inject .Inject ;
@@ -75,7 +75,7 @@ public static WebArchive deploy() {
7575 @ Inject
7676 private CircuitBreakerMetricBean cbBean ;
7777
78- @ BeforeTest
78+ @ BeforeMethod
7979 public void closeTheCircuit () throws Exception {
8080
8181 // Condition is needed because BeforeTest runs on both client and server
Original file line number Diff line number Diff line change 5353import org .jboss .shrinkwrap .api .asset .StringAsset ;
5454import org .jboss .shrinkwrap .api .spec .JavaArchive ;
5555import org .jboss .shrinkwrap .api .spec .WebArchive ;
56- import org .testng .annotations .BeforeTest ;
56+ import org .testng .annotations .BeforeMethod ;
5757import org .testng .annotations .Test ;
5858
5959import io .opentelemetry .sdk .autoconfigure .spi .AutoConfigurationCustomizerProvider ;
@@ -90,7 +90,7 @@ public static WebArchive deploy() {
9090 @ Inject
9191 private CircuitBreakerMetricBean cbBean ;
9292
93- @ BeforeTest
93+ @ BeforeMethod
9494 public void closeTheCircuit () throws Exception {
9595
9696 // Condition is needed because BeforeTest runs on both client and server
@@ -120,6 +120,7 @@ public void closeTheCircuit() throws Exception {
120120 @ Test
121121 public void testCircuitBreakerMetric () throws Exception {
122122 TelemetryMetricGetter m = new TelemetryMetricGetter (CircuitBreakerMetricBean .class , "doWork" );
123+ m .baselineMetrics ();
123124
124125 // First failure, circuit remains closed
125126 expectTestException (() -> cbBean .doWork (Result .FAIL ));
You can’t perform that action at this time.
0 commit comments