mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Git - integration tests should use workspace path and not the real path to avoid random failures (#244959)
This commit is contained in:
@@ -13,7 +13,7 @@ import { GitExtension, API, Repository, Status } from '../api/git';
|
||||
import { eventToPromise } from '../util';
|
||||
|
||||
suite('git smoke test', function () {
|
||||
const cwd = fs.realpathSync(workspace.workspaceFolders![0].uri.fsPath);
|
||||
const cwd = workspace.workspaceFolders![0].uri.fsPath;
|
||||
|
||||
function file(relativePath: string) {
|
||||
return path.join(cwd, relativePath);
|
||||
@@ -61,7 +61,7 @@ suite('git smoke test', function () {
|
||||
}
|
||||
|
||||
assert.strictEqual(git.repositories.length, 1);
|
||||
assert.strictEqual(fs.realpathSync(git.repositories[0].rootUri.fsPath), cwd);
|
||||
assert.strictEqual(git.repositories[0].rootUri.fsPath, cwd);
|
||||
|
||||
repository = git.repositories[0];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user