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 eclipse-theia#7064

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

Signed-off-by: Vincent Fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto authored and Sean Hellum committed Mar 12, 2020
1 parent c0bb7ce commit 44dbe22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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 @@ -73,7 +74,12 @@ describe('git', async function (): Promise<void> {

});

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<void> {
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 44dbe22

Please sign in to comment.