From ca064b68e07ae5c036ddd4c1924b43489c2d94ab Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 17 Sep 2021 04:50:12 -0500 Subject: [PATCH] test: increase timeout of the tests --- src/brew/__tests__/brew.test.ts | 2 +- src/ccache/__tests__/ccache.test.ts | 2 +- src/chocolatey/__tests__/chocolatey.test.ts | 2 +- src/cmake/__tests__/cmake.test.ts | 2 +- src/conan/__tests__/conan.test.ts | 2 +- src/cppcheck/__tests__/cppcheck.test.ts | 2 +- src/doxygen/__tests__/doxygen.test.ts | 2 +- src/gcc/__tests__/gcc.test.ts | 2 +- src/gcovr/__tests__/gcovr.test.ts | 2 +- src/llvm/__tests__/llvm.test.ts | 2 +- src/meson/__tests__/meson.test.ts | 2 +- src/msvc/__tests__/msvc.test.ts | 2 +- src/ninja/__tests__/ninja.test.ts | 2 +- src/opencppcoverage/__tests__/opencppcoverage.test.ts | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/brew/__tests__/brew.test.ts b/src/brew/__tests__/brew.test.ts index ad1b6c55..e3c1d58f 100644 --- a/src/brew/__tests__/brew.test.ts +++ b/src/brew/__tests__/brew.test.ts @@ -1,7 +1,7 @@ import { setupBrew } from "../brew" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-brew", () => { it("should setup brew", async () => { if (process.platform !== "darwin") { diff --git a/src/ccache/__tests__/ccache.test.ts b/src/ccache/__tests__/ccache.test.ts index 441eea0c..f85f2e57 100644 --- a/src/ccache/__tests__/ccache.test.ts +++ b/src/ccache/__tests__/ccache.test.ts @@ -2,7 +2,7 @@ import { setupCcache } from "../ccache" import { testBin } from "../../utils/tests/test-helpers" import { InstallationInfo } from "../../utils/setup/setupBin" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-ccache", () => { it("should setup ccache", async () => { const installInfo = await setupCcache("", "", process.arch) diff --git a/src/chocolatey/__tests__/chocolatey.test.ts b/src/chocolatey/__tests__/chocolatey.test.ts index b90c049c..ce62cb34 100644 --- a/src/chocolatey/__tests__/chocolatey.test.ts +++ b/src/chocolatey/__tests__/chocolatey.test.ts @@ -2,7 +2,7 @@ import { InstallationInfo } from "../../utils/setup/setupBin" import { testBin } from "../../utils/tests/test-helpers" import { setupChocolatey } from "../chocolatey" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-chocolatey", () => { it("should setup chocolatey", async () => { if (process.platform !== "win32") { diff --git a/src/cmake/__tests__/cmake.test.ts b/src/cmake/__tests__/cmake.test.ts index 5ec0f29f..b305dbe8 100644 --- a/src/cmake/__tests__/cmake.test.ts +++ b/src/cmake/__tests__/cmake.test.ts @@ -1,7 +1,7 @@ import { setupCmake } from "../cmake" import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-cmake", () => { let directory: string diff --git a/src/conan/__tests__/conan.test.ts b/src/conan/__tests__/conan.test.ts index c836dd1d..a7038048 100644 --- a/src/conan/__tests__/conan.test.ts +++ b/src/conan/__tests__/conan.test.ts @@ -1,7 +1,7 @@ import { setupConan } from "../conan" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-conan", () => { it("should setup conan", async () => { const installInfo = await setupConan("", "", process.arch) diff --git a/src/cppcheck/__tests__/cppcheck.test.ts b/src/cppcheck/__tests__/cppcheck.test.ts index 78785be8..5ca75a5c 100644 --- a/src/cppcheck/__tests__/cppcheck.test.ts +++ b/src/cppcheck/__tests__/cppcheck.test.ts @@ -1,7 +1,7 @@ import { setupCppcheck } from "../cppcheck" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-cppcheck", () => { it("should setup cppcheck", async () => { const installInfo = await setupCppcheck("", "", process.arch) diff --git a/src/doxygen/__tests__/doxygen.test.ts b/src/doxygen/__tests__/doxygen.test.ts index fe5e5112..f334c6cf 100644 --- a/src/doxygen/__tests__/doxygen.test.ts +++ b/src/doxygen/__tests__/doxygen.test.ts @@ -2,7 +2,7 @@ import { setupDoxygen } from "../doxygen" import { testBin } from "../../utils/tests/test-helpers" import { InstallationInfo } from "../../utils/setup/setupBin" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-doxygen", () => { it("should setup doxygen", async () => { const installInfo = await setupDoxygen("", "", process.arch) diff --git a/src/gcc/__tests__/gcc.test.ts b/src/gcc/__tests__/gcc.test.ts index 727248eb..3dd669ea 100644 --- a/src/gcc/__tests__/gcc.test.ts +++ b/src/gcc/__tests__/gcc.test.ts @@ -2,7 +2,7 @@ import { testBin } from "../../utils/tests/test-helpers" import { setupGcc } from "../gcc" import { getVersion } from "../../default_versions" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-gcc", () => { it("should setup gcc", async () => { const version = getVersion("gcc", undefined) ?? "11" diff --git a/src/gcovr/__tests__/gcovr.test.ts b/src/gcovr/__tests__/gcovr.test.ts index 644e2300..f45befa8 100644 --- a/src/gcovr/__tests__/gcovr.test.ts +++ b/src/gcovr/__tests__/gcovr.test.ts @@ -1,7 +1,7 @@ import { setupGcovr } from "../gcovr" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-gcovr", () => { it("should setup gcovr", async () => { const installInfo = await setupGcovr("", "", process.arch) diff --git a/src/llvm/__tests__/llvm.test.ts b/src/llvm/__tests__/llvm.test.ts index 1e8d56a1..2bec0936 100644 --- a/src/llvm/__tests__/llvm.test.ts +++ b/src/llvm/__tests__/llvm.test.ts @@ -3,7 +3,7 @@ import { getSpecificVersionAndUrl } from "../../utils/setup/version" import { isValidUrl } from "../../utils/http/validate_url" import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) async function testUrl(version: string) { const [specificVersion, url] = await getSpecificVersionAndUrl(VERSIONS, process.platform, version, getUrl) diff --git a/src/meson/__tests__/meson.test.ts b/src/meson/__tests__/meson.test.ts index 3e219cb1..6fc704a2 100644 --- a/src/meson/__tests__/meson.test.ts +++ b/src/meson/__tests__/meson.test.ts @@ -1,7 +1,7 @@ import { setupMeson } from "../meson" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-meson", () => { it("should setup meson", async () => { const installInfo = await setupMeson("", "", process.arch) diff --git a/src/msvc/__tests__/msvc.test.ts b/src/msvc/__tests__/msvc.test.ts index 09c76133..e321286a 100644 --- a/src/msvc/__tests__/msvc.test.ts +++ b/src/msvc/__tests__/msvc.test.ts @@ -1,7 +1,7 @@ import { testBin } from "../../utils/tests/test-helpers" import { setupMSVC } from "../msvc" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-msvc", () => { it("should setup msvc", async () => { if (process.platform !== "win32") { diff --git a/src/ninja/__tests__/ninja.test.ts b/src/ninja/__tests__/ninja.test.ts index a1c5d9f1..e6ac30d7 100644 --- a/src/ninja/__tests__/ninja.test.ts +++ b/src/ninja/__tests__/ninja.test.ts @@ -1,7 +1,7 @@ import { setupNinja } from "../ninja" import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) async function testNinja(directory: string) { const { binDir } = await setupNinja("1.10.2", directory, "") await testBin("ninja", ["--version"], binDir) diff --git a/src/opencppcoverage/__tests__/opencppcoverage.test.ts b/src/opencppcoverage/__tests__/opencppcoverage.test.ts index e78925d2..5c341280 100644 --- a/src/opencppcoverage/__tests__/opencppcoverage.test.ts +++ b/src/opencppcoverage/__tests__/opencppcoverage.test.ts @@ -1,7 +1,7 @@ import { setupOpencppcoverage } from "../opencppcoverage" import { testBin } from "../../utils/tests/test-helpers" -jest.setTimeout(200000) +jest.setTimeout(300000) describe("setup-OpenCppCoverage", () => { it("should setup OpenCppCoverage", async () => { if (process.platform !== "win32") {