From 61ea23d65ab7d7b84f0b9c99212e4ce49daf75cf Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Fri, 10 Dec 2021 00:41:57 +0530 Subject: [PATCH 1/2] Skip watcher tests on Linux --- .../base/locators/lowLevel/watcherTestUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts b/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts index a898a770ebb9..9c13d725957e 100644 --- a/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts +++ b/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts @@ -151,7 +151,10 @@ export function testLocatorWatcher( return items.some((item) => externalDeps.arePathsSame(item.executablePath, executable)); } - suiteSetup(async () => { + suiteSetup(async function () { + if (getOSType() === OSType.Linux) { + return this.skip(); + } await venvs.cleanUp(); }); async function setupLocator(onChanged: (e: PythonEnvsChangedEvent) => Promise) { From ac2141eba7a0101fb58732e2b8c5a30f59d24d86 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Fri, 10 Dec 2021 00:57:41 +0530 Subject: [PATCH 2/2] Fix lint --- .../base/locators/lowLevel/watcherTestUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts b/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts index 9c13d725957e..c45757556ec1 100644 --- a/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts +++ b/src/test/pythonEnvironments/base/locators/lowLevel/watcherTestUtils.ts @@ -153,7 +153,7 @@ export function testLocatorWatcher( suiteSetup(async function () { if (getOSType() === OSType.Linux) { - return this.skip(); + this.skip(); } await venvs.cleanUp(); });