Skip to content

Commit

Permalink
git: skip failing git unit test on win
Browse files Browse the repository at this point in the history
Fixes #7064

Skips the failing `@theia/git` unit test on Windows (#933).

Signed-off-by: Vincent Fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Feb 5, 2020
1 parent cc0da4e commit 077394e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/git/src/node/dugite-git.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -74,6 +75,11 @@ describe('git', async function (): Promise<void> {
});

it('should discover all nested repositories and the root repository which is at the workspace root', async () => {
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'));
Expand Down

0 comments on commit 077394e

Please sign in to comment.