Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip log4j1 test failure
  • Loading branch information
sarahchen6 committed Jul 14, 2025
commit bafac2465a468e683375ca8ba7504e2ae0d934e3
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import datadog.environment.JavaVirtualMachine
import datadog.trace.agent.test.AgentTestRunner
import org.apache.log4j.Category
import org.apache.log4j.MDC
import org.apache.log4j.Priority
import org.apache.log4j.spi.LoggingEvent
import spock.lang.IgnoreIf

class MdcTest extends AgentTestRunner {
@IgnoreIf(reason = "TODO: Fix for Java 25.", value = {
JavaVirtualMachine.isJavaVersionAtLeast(25)
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def "should preserve mdc when logging injection is #injectionEnabled"() {
setup:
injectSysConfig("logs.injection", injectionEnabled)
Expand Down