diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index 5d025e234d..dd429bd208 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -691,7 +691,7 @@ var DefinitelyTyped; } Object.defineProperty(TestResult.prototype, "success", { get: function () { - return this.exitCode !== 1; + return this.exitCode === 0; }, enumerable: true, configurable: true diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index fb685ed44f..b0ad70a63a 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -139,7 +139,7 @@ module DefinitelyTyped.TestManager { exitCode:number; public get success():boolean { - return this.exitCode !== 1; + return this.exitCode === 0; } }