@@ -9,7 +9,7 @@ import vscode from 'vscode'
99import * as GitTypes from '../../../../types/git'
1010import { GitExtension , Repository } from '../../../shared/extensions/git'
1111import { makeTemporaryToolkitFolder } from '../../../shared/filesystemUtilities'
12- import { realpath } from 'fs-extra '
12+ import { realpathSync } from 'fs'
1313import { execFileSync } from 'child_process'
1414import { sleep } from '../../../shared/utilities/timeoutUtils'
1515import { getLogger } from '../../../shared/logger/logger'
@@ -78,7 +78,7 @@ describe.skip('GitExtension', function () {
7878 await initConfig ( )
7979
8080 // realpath is used in case of symlinks
81- const tmpDirUri = vscode . Uri . file ( await realpath ( await makeTemporaryToolkitFolder ( ) ) )
81+ const tmpDirUri = vscode . Uri . file ( realpathSync ( await makeTemporaryToolkitFolder ( ) ) )
8282 const repo = await git . $api . init ( tmpDirUri ) . catch ( parseGitError )
8383 if ( ! repo ) {
8484 throw new Error ( `Failed to create test repository: ${ tmpDirUri . fsPath } ` )
@@ -100,7 +100,7 @@ describe.skip('GitExtension', function () {
100100 } )
101101
102102 it ( 'can detect opening a repository' , async function ( ) {
103- const newRepoUri = vscode . Uri . file ( await realpath ( await makeTemporaryToolkitFolder ( ) ) )
103+ const newRepoUri = vscode . Uri . file ( realpathSync ( await makeTemporaryToolkitFolder ( ) ) )
104104 const onOpen = new Promise < Repository > ( ( resolve , reject ) => {
105105 git . onDidOpenRepository ( ( repo ) => {
106106 if ( repo . rootUri . fsPath === newRepoUri . fsPath ) {
0 commit comments