Remove unnecessary test

Tests should not concern internal workings of install-dotnet as those are covered by the appropriate repo and team.
This commit is contained in:
Zachary Eisinger 2019-12-19 12:51:05 -08:00
parent b689c9945c
commit e201cec6d1
2 changed files with 2 additions and 11 deletions

View File

@ -51,15 +51,6 @@ describe('installer tests', () => {
expect(thrown).toBe(true);
}, 30000);
it('Uses version of dotnet installed in cache', async () => {
const dotnetDir: string = path.join(toolDir, 'dncs', '250.0.0', os.arch());
await io.mkdirP(dotnetDir);
fs.writeFileSync(`${dotnetDir}.complete`, 'hello');
// This will throw if it doesn't find it in the cache (because no such version exists)
await getDotnet('250.0.0');
return;
}, 25000);
it('Uses an up to date bash download script', async () => {
var httpCallbackClient = new httpClient.HttpClient(
'setup-dotnet-test',

View File

@ -3,8 +3,8 @@ import fs = require('fs');
import os = require('os');
import path = require('path');
const toolDir = path.join(__dirname, 'runner', 'tools');
const tempDir = path.join(__dirname, 'runner', 'temp');
const toolDir = path.join(__dirname, 'runner', 'tools2');
const tempDir = path.join(__dirname, 'runner', 'temp2');
import * as setup from '../src/setup-dotnet';