Rename this function so it stops shadowing a local we use elsewhere (#33692)

This commit is contained in:
Ryan Cavanaugh 2019-10-01 10:37:53 -07:00 committed by GitHub
parent 8292af182c
commit 6b63c1bc5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,14 +137,14 @@ namespace Harness.Parallel.Worker {
*/
function runTests(task: Task, fn: (payload: TaskResult) => void) {
if (task.runner === "unittest") {
return runUnitTests(task, fn);
return executeUnitTests(task, fn);
}
else {
return runFileTests(task, fn);
}
}
function runUnitTests(task: UnitTestTask, fn: (payload: TaskResult) => void) {
function executeUnitTests(task: UnitTestTask, fn: (payload: TaskResult) => void) {
if (!unitTestSuiteMap && unitTestSuite.suites.length) {
unitTestSuiteMap = ts.createMap<Mocha.Suite>();
for (const suite of unitTestSuite.suites) {