Merge pull request #676 from crazy-max/test-fix-timeout
test: set proper timeout when downloading binaries
This commit is contained in:
@@ -47,9 +47,7 @@ describe('download', () => {
|
|||||||
buildxBin = await install.installPlugin(toolPath, tmpDir);
|
buildxBin = await install.installPlugin(toolPath, tmpDir);
|
||||||
}
|
}
|
||||||
expect(fs.existsSync(buildxBin)).toBe(true);
|
expect(fs.existsSync(buildxBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -61,9 +59,7 @@ describe('download', () => {
|
|||||||
const install = new Install({standalone: false});
|
const install = new Install({standalone: false});
|
||||||
const toolPath = await install.download(version);
|
const toolPath = await install.download(version);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -74,9 +70,7 @@ describe('download', () => {
|
|||||||
const install = new Install({standalone: false});
|
const install = new Install({standalone: false});
|
||||||
const toolPath = await install.download(version, true);
|
const toolPath = await install.download(version, true);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// TODO: add tests for arm
|
// TODO: add tests for arm
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
@@ -96,9 +90,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const buildxBin = await install.download('latest');
|
const buildxBin = await install.download('latest');
|
||||||
expect(fs.existsSync(buildxBin)).toBe(true);
|
expect(fs.existsSync(buildxBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('build', () => {
|
describe('build', () => {
|
||||||
|
|||||||
@@ -47,9 +47,7 @@ describe('download', () => {
|
|||||||
composeBin = await install.installPlugin(toolPath, tmpDir);
|
composeBin = await install.installPlugin(toolPath, tmpDir);
|
||||||
}
|
}
|
||||||
expect(fs.existsSync(composeBin)).toBe(true);
|
expect(fs.existsSync(composeBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -61,9 +59,7 @@ describe('download', () => {
|
|||||||
const install = new Install({standalone: false});
|
const install = new Install({standalone: false});
|
||||||
const toolPath = await install.download(version);
|
const toolPath = await install.download(version);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -74,9 +70,7 @@ describe('download', () => {
|
|||||||
const install = new Install({standalone: false});
|
const install = new Install({standalone: false});
|
||||||
const toolPath = await install.download(version, true);
|
const toolPath = await install.download(version, true);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// TODO: add tests for arm
|
// TODO: add tests for arm
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
@@ -96,9 +90,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const composeBin = await install.download('latest');
|
const composeBin = await install.download('latest');
|
||||||
expect(fs.existsSync(composeBin)).toBe(true);
|
expect(fs.existsSync(composeBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getDownloadVersion', () => {
|
describe('getDownloadVersion', () => {
|
||||||
|
|||||||
@@ -41,9 +41,7 @@ describe('download', () => {
|
|||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
const regclientBin = await install.install(toolPath, tmpDir);
|
const regclientBin = await install.install(toolPath, tmpDir);
|
||||||
expect(fs.existsSync(regclientBin)).toBe(true);
|
expect(fs.existsSync(regclientBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -54,7 +52,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const toolPath = await install.download(version);
|
const toolPath = await install.download(version);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
});
|
}, 100000);
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -64,7 +62,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const toolPath = await install.download(version, true);
|
const toolPath = await install.download(version, true);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
});
|
}, 100000);
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -82,9 +80,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const regclientBin = await install.download('latest');
|
const regclientBin = await install.download('latest');
|
||||||
expect(fs.existsSync(regclientBin)).toBe(true);
|
expect(fs.existsSync(regclientBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getDownloadVersion', () => {
|
describe('getDownloadVersion', () => {
|
||||||
|
|||||||
@@ -42,9 +42,7 @@ describe('download', () => {
|
|||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
const undockBin = await install.install(toolPath, tmpDir);
|
const undockBin = await install.install(toolPath, tmpDir);
|
||||||
expect(fs.existsSync(undockBin)).toBe(true);
|
expect(fs.existsSync(undockBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -56,7 +54,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const toolPath = await install.download(version);
|
const toolPath = await install.download(version);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
});
|
}, 100000);
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
test.each([
|
test.each([
|
||||||
@@ -67,7 +65,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const toolPath = await install.download(version, true);
|
const toolPath = await install.download(version, true);
|
||||||
expect(fs.existsSync(toolPath)).toBe(true);
|
expect(fs.existsSync(toolPath)).toBe(true);
|
||||||
});
|
}, 100000);
|
||||||
|
|
||||||
// TODO: add tests for arm
|
// TODO: add tests for arm
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
@@ -87,9 +85,7 @@ describe('download', () => {
|
|||||||
const install = new Install();
|
const install = new Install();
|
||||||
const undockBin = await install.download('latest');
|
const undockBin = await install.download('latest');
|
||||||
expect(fs.existsSync(undockBin)).toBe(true);
|
expect(fs.existsSync(undockBin)).toBe(true);
|
||||||
},
|
}, 100000);
|
||||||
100000
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getDownloadVersion', () => {
|
describe('getDownloadVersion', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user