mirror of https://github.com/apache/nifi.git
NIFI-1822 Renamed reference to MockProcessorContext#setNumThreads to setMaxConcurrentTasks after refactor.
This commit is contained in:
parent
12bbe82381
commit
bdbc4bab04
|
@ -43,7 +43,6 @@ import java.util.concurrent.Future;
|
|||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import org.apache.nifi.annotation.behavior.TriggerSerially;
|
||||
import org.apache.nifi.annotation.lifecycle.OnAdded;
|
||||
import org.apache.nifi.annotation.lifecycle.OnConfigurationRestored;
|
||||
|
@ -402,7 +401,7 @@ public class StandardProcessorTestRunner implements TestRunner {
|
|||
|
||||
@Override
|
||||
public void enqueue(final String data) {
|
||||
enqueue(data.getBytes(StandardCharsets.UTF_8), Collections.<String, String> emptyMap());
|
||||
enqueue(data.getBytes(StandardCharsets.UTF_8), Collections.emptyMap());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -531,7 +530,7 @@ public class StandardProcessorTestRunner implements TestRunner {
|
|||
}
|
||||
|
||||
this.numThreads = threadCount;
|
||||
this.context.setNumThreads(threadCount);
|
||||
this.context.setMaxConcurrentTasks(threadCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue