fix git smoketests

This commit is contained in:
Joao Moreno
2020-02-04 20:26:12 +01:00
parent a861520a49
commit 54007fa545
2 changed files with 8 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ import { GitExtension, API, Repository, Status } from '../api/git';
import { eventToPromise } from '../util';
suite('git smoke test', function () {
const cwd = workspace.workspaceFolders![0].uri.path;
const cwd = fs.realpathSync(workspace.workspaceFolders![0].uri.fsPath);
const file = (relativePath: string) => path.join(cwd, relativePath);
const uri = (relativePath: string) => Uri.file(file(relativePath));
const open = async (relativePath: string) => {
@@ -47,7 +47,7 @@ suite('git smoke test', function () {
}
assert.equal(git.repositories.length, 1);
assert.equal(git.repositories[0].rootUri.path, cwd);
assert.equal(git.repositories[0].rootUri.fsPath, cwd);
repository = git.repositories[0];
});