Skip to content

Commit e7c48db

Browse files
committed
fix(concurrent): Fix test cases where thread pool is null
1 parent 2cbaf51 commit e7c48db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dd-java-agent/instrumentation/java-concurrent/src/test/groovy/NettyExecutorInstrumentationTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class NettyExecutorInstrumentationTest extends AgentTestRunner {
195195
"schedule Runnable" | scheduleRunnable | localEventLoopGroup
196196
"schedule Callable" | scheduleCallable | localEventLoopGroup
197197

198-
poolName = poolImpl.class.simpleName
198+
poolName = poolImpl?.class?.simpleName
199199
}
200200

201201
def "#poolName '#name' reports after canceled jobs"() {
@@ -274,7 +274,7 @@ class NettyExecutorInstrumentationTest extends AgentTestRunner {
274274
"schedule Runnable" | scheduleRunnable | localEventLoopGroup.next()
275275
"schedule Callable" | scheduleCallable | localEventLoopGroup.next()
276276

277-
poolName = poolImpl.class.simpleName
277+
poolName = poolImpl?.class?.simpleName
278278
}
279279

280280
def epollExecutor() {

0 commit comments

Comments
 (0)