address ci errors

This commit is contained in:
Marco Ferrer 2019-01-21 14:12:44 -05:00
parent 7819430620
commit 5096ac35b6
2 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import kotlinx.coroutines.ThreadPoolDispatcherKt
class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
static def dispatchersToTest = [
static dispatchersToTest = [
Dispatchers.Default,
Dispatchers.IO,
Dispatchers.Unconfined,

View File

@ -160,11 +160,10 @@ public final class ExecutorInstrumentation extends Instrumenter.Default {
nameMatches("invoke(Any|All)$").and(takesArgument(0, Callable.class)),
SetCallableStateForCallableCollectionAdvice.class.getName());
transformers.put( // kotlinx.coroutines.scheduling.CoroutineScheduler
named("dispatch")
.and(takesArgument(0, Runnable.class))
.and(takesArgument(1, named("kotlinx.coroutines.scheduling.TaskContext"))),
SetExecuteRunnableStateAdvice.class.getName());
named("dispatch")
.and(takesArgument(0, Runnable.class))
.and(takesArgument(1, named("kotlinx.coroutines.scheduling.TaskContext"))),
SetExecuteRunnableStateAdvice.class.getName());
return transformers;
}