Skip to content

Commit fda535e

Browse files
committed
fix error in unit tests
1 parent 6f4a36e commit fda535e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/unittests/common/baseTestManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export abstract class BaseTestManager {
152152
return this.discoverTests(clearDiscoveredTestCache, true)
153153
.catch(reason => {
154154
if (this.cancellationToken && this.cancellationToken.isCancellationRequested) {
155-
return Promise.reject(reason);
155+
return Promise.reject<Tests>(reason);
156156
}
157157
displayTestErrorMessage('Errors in discovering tests, continuing with tests');
158158
return <Tests>{
@@ -175,7 +175,7 @@ export abstract class BaseTestManager {
175175
this._status = TestStatus.Error;
176176
}
177177
this.disposeCancellationToken();
178-
return Promise.reject(reason);
178+
return Promise.reject<Tests>(reason);
179179
});
180180
}
181181
abstract runTestImpl(tests: Tests, testsToRun?: TestsToRun, runFailedTests?: boolean, debug?: boolean): Promise<any>;

0 commit comments

Comments
 (0)