Skip to content

Commit bc787c0

Browse files
chore: rename
1 parent a38d861 commit bc787c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dd-java-agent/instrumentation/testng/testng-7.0/src/main/java/datadog/trace/instrumentation/testng7/TestNGExecutionInstrumentation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void methodAdvice(MethodTransformer transformer) {
4747

4848
transformer.applyAdvice(
4949
named("runTestResultListener").and(takesArgument(0, named("org.testng.ITestResult"))),
50-
TestNGExecutionInstrumentation.class.getName() + "$SuppressFailuresAdvice");
50+
TestNGExecutionInstrumentation.class.getName() + "$ModifyStatusAdvice");
5151
}
5252

5353
@Override
@@ -106,10 +106,10 @@ public static void shouldRetryTestMethod(
106106
}
107107
}
108108

109-
public static class SuppressFailuresAdvice {
109+
public static class ModifyStatusAdvice {
110110
@SuppressWarnings("bytebuddy-exception-suppression")
111111
@Advice.OnMethodEnter
112-
public static void suppressFailures(@Advice.Argument(0) final ITestResult result) {
112+
public static void modifyStatus(@Advice.Argument(0) final ITestResult result) {
113113
IRetryAnalyzer retryAnalyzer = TestNGUtils.getRetryAnalyzer(result);
114114
if (!(retryAnalyzer instanceof RetryAnalyzer)) {
115115
// test execution policies not injected

0 commit comments

Comments
 (0)