Skip to content

Commit b86e268

Browse files
committed
test(o11y): fix TestAppender issues in ITComputeGoldenSignals
1 parent 9ad9b35 commit b86e268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration/ITComputeGoldenSignals.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ public void setUp() throws Exception {
146146

147147
@After
148148
public void tearDown() throws Exception {
149+
if (testAppender != null) {
150+
testAppender.clearEvents();
151+
}
149152
if (traceClient != null) {
150153
traceClient.close();
151154
}
@@ -374,7 +377,6 @@ public static class TestAppender extends AppenderBase<ILoggingEvent> {
374377

375378
@Override
376379
protected void append(ILoggingEvent eventObject) {
377-
eventObject.getMDCPropertyMap();
378380
events.add(eventObject);
379381
}
380382

0 commit comments

Comments
 (0)