mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Uncomment slow test
This commit is contained in:
parent
60e54bffae
commit
8a5bbb0084
@ -29,18 +29,18 @@ describe('installer tests', () => {
|
||||
}
|
||||
}, 100000);
|
||||
|
||||
// it('Acquires version of dotnet if no matching version is installed', async () => {
|
||||
// console.log(process.env.DOTNET_INSTALL_DIR);
|
||||
// await getDotnet('3.1.100');
|
||||
// const dotnetDir = path.join(toolDir, 'dncs', '3.1.100', os.arch());
|
||||
it('Acquires version of dotnet if no matching version is installed', async () => {
|
||||
console.log(process.env.DOTNET_INSTALL_DIR);
|
||||
await getDotnet('3.1.100');
|
||||
const dotnetDir = path.join(toolDir, 'dncs', '3.1.100', os.arch());
|
||||
|
||||
// expect(fs.existsSync(`${dotnetDir}.complete`)).toBe(true);
|
||||
// if (IS_WINDOWS) {
|
||||
// expect(fs.existsSync(path.join(dotnetDir, 'dotnet.exe'))).toBe(true);
|
||||
// } else {
|
||||
// expect(fs.existsSync(path.join(dotnetDir, 'dotnet'))).toBe(true);
|
||||
// }
|
||||
// }, 100000);
|
||||
expect(fs.existsSync(`${dotnetDir}.complete`)).toBe(true);
|
||||
if (IS_WINDOWS) {
|
||||
expect(fs.existsSync(path.join(dotnetDir, 'dotnet.exe'))).toBe(true);
|
||||
} else {
|
||||
expect(fs.existsSync(path.join(dotnetDir, 'dotnet'))).toBe(true);
|
||||
}
|
||||
}, 100000);
|
||||
|
||||
it('Throws if no location contains correct dotnet version', async () => {
|
||||
let thrown = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user