From 44dbe2295fc1d91f8625c17f99148385d55496f0 Mon Sep 17 00:00:00 2001 From: Vincent Fugnitto Date: Tue, 4 Feb 2020 08:47:05 -0500 Subject: [PATCH] git: skip failing git unit test on win Fixes #7064 Skips the failing `@theia/git` unit test on Windows (#933). Signed-off-by: Vincent Fugnitto --- packages/git/src/node/dugite-git.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/git/src/node/dugite-git.spec.ts b/packages/git/src/node/dugite-git.spec.ts index 6ec8cb4f98b0d..c59faac0fb657 100644 --- a/packages/git/src/node/dugite-git.spec.ts +++ b/packages/git/src/node/dugite-git.spec.ts @@ -26,6 +26,7 @@ import { FileUri } from '@theia/core/lib/node/file-uri'; import { WorkingDirectoryStatus, Repository, GitUtils, GitFileStatus, GitFileChange } from '../common'; import { initRepository, createTestRepository } from 'dugite-extra/lib/command/test-helper'; import { createGit } from './test/binding-helper'; +import { isWindows } from '@theia/core/lib/common/os'; /* eslint-disable max-len, no-unused-expressions */ @@ -73,7 +74,12 @@ describe('git', async function (): Promise { }); - it('should discover all nested repositories and the root repository which is at the workspace root', async () => { + it('should discover all nested repositories and the root repository which is at the workspace root', async function (): Promise { + if (isWindows) { + // https://github.com/eclipse-theia/theia/issues/933 + this.skip(); + return; + } const root = track.mkdirSync('discovery-test-3'); fs.mkdirSync(path.join(root, 'BASE'));