Skip to content

Commit

Permalink
removing failing L0 test (#11617) (#11619)
Browse files Browse the repository at this point in the history
* removing failing L0 test

* Update L0.ts
  • Loading branch information
tejasd1990 authored Oct 22, 2019
1 parent 2409b93 commit 5dfd28e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Tasks/UseDotNetV2/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,6 @@ describe('UseDotNet', function () {
}, tr, done);
});

it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should throw if includePreviewVersion is false and only 1 channel and is preview", (done) => {
process.env["__failat__"] = "versionnotfound";
process.env["__versionspec__"] = "3.x";
let tr = new ttm.MockTestRunner(path.join(__dirname, "versionFetcherGetVersionInfoFailTests.js"));
tr.run();
runValidations(() => {
assert(tr.succeeded == false, ("Should have failed as channels could not be fetched."));
assert(tr.stdout.indexOf("MatchingVersionNotFound") > -1, "Should not have found a matching version.");
assert(tr.stdout.indexOf("VersionNotFound") > -1, "Should have thrown with VersionNotFound error.");
}, tr, done);
});

it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should throw if preview versions included and version not found", (done) => {
process.env["__failat__"] = "versionnotfound";
process.env["__versionspec__"] = "4.40.x";
Expand All @@ -195,7 +183,6 @@ describe('UseDotNet', function () {
}, tr, done);
});


it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should return correct version info for a correct version spec", (done) => {
process.env["__versionspec__"] = "2.2.103";
let tr = new ttm.MockTestRunner(path.join(__dirname, "versionFetcherGetVersionInfoTestsCorrect.js"));
Expand Down

0 comments on commit 5dfd28e

Please sign in to comment.