mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix lint race when not running tests in parallel (#25235)
This commit is contained in:
+3
-4
@@ -486,7 +486,6 @@ function runConsoleTests(defaultReporter, runInParallel) {
|
||||
process.env.NODE_ENV = savedNodeEnv;
|
||||
Travis.measure(startTime);
|
||||
runLinterAndComplete();
|
||||
finish();
|
||||
}, function (e, status) {
|
||||
process.env.NODE_ENV = savedNodeEnv;
|
||||
Travis.measure(startTime);
|
||||
@@ -523,11 +522,11 @@ function runConsoleTests(defaultReporter, runInParallel) {
|
||||
|
||||
function runLinterAndComplete() {
|
||||
if (!lintFlag || dirty) {
|
||||
return;
|
||||
return finish();
|
||||
}
|
||||
var lint = jake.Task['lint'];
|
||||
lint.addListener('complete', function () {
|
||||
complete();
|
||||
lint.once('complete', function () {
|
||||
finish();
|
||||
});
|
||||
lint.invoke();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user