Skip to content

Commit 8314d04

Browse files
committed
Clarify suite diagnostic reporting method
1 parent d01764e commit 8314d04

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎dd-java-agent/instrumentation-testing/src/main/groovy/datadog/trace/agent/test/InstrumentationSpecification.groovy‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ abstract class InstrumentationSpecification extends DDSpecification implements A
453453
if (scopeDiagnosticsSuiteEnabled()) {
454454
if (scopeDiagnosticsSuiteSetupPending) {
455455
scopeDiagnosticsSuiteSetupPending = false
456-
def suiteSetupFailure = reportScopeDiagnostics(scopeDiagClassConfig(), "suite setup")
456+
def suiteSetupFailure = reportScopeDiagnosticsForPhase(scopeDiagClassConfig(), "suite setup")
457457
if (suiteSetupFailure != null) {
458458
throw suiteSetupFailure
459459
}
@@ -588,10 +588,10 @@ abstract class InstrumentationSpecification extends DDSpecification implements A
588588
}
589589

590590
private Throwable reportScopeDiagnostics() {
591-
return reportScopeDiagnostics(scopeDiagConfig(), null)
591+
return reportScopeDiagnosticsForPhase(scopeDiagConfig(), null)
592592
}
593593

594-
private Throwable reportScopeDiagnostics(TrackScopeContinuations config, String phase) {
594+
private Throwable reportScopeDiagnosticsForPhase(TrackScopeContinuations config, String phase) {
595595
if (!ScopeDiagnostics.isEnabled(config)) {
596596
return null
597597
}
@@ -642,7 +642,7 @@ abstract class InstrumentationSpecification extends DDSpecification implements A
642642
protected void cleanupAfterAgent() {}
643643

644644
void cleanupSpec() {
645-
def scopeDiagnosticsFailure = reportScopeDiagnostics(scopeDiagClassConfig(), "suite cleanup")
645+
def scopeDiagnosticsFailure = reportScopeDiagnosticsForPhase(scopeDiagClassConfig(), "suite cleanup")
646646
try {
647647
TEST_TRACER?.close()
648648
TEST_AGENT_WRITER?.close()

0 commit comments

Comments
 (0)