Skip to content

Commit f13cf65

Browse files
committed
avoid .cmd extension
1 parent 07026be commit f13cf65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/test/shared/utilities/pathFind.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('pathFind', function () {
5555

5656
it('first tries ssh in $PATH', async function () {
5757
const workspace = await testutil.createTestWorkspaceFolder()
58-
const fakeSshPath = path.join(workspace.uri.fsPath, `ssh${isWin() ? '.cmd' : ''}`)
58+
const fakeSshPath = path.join(workspace.uri.fsPath, `ssh`)
5959

6060
testutil.setEnv(testutil.envWithNewPath(workspace.uri.fsPath))
6161
const firstResult = await findSshPath(false)
@@ -70,7 +70,7 @@ describe('pathFind', function () {
7070

7171
it('only returns executable ssh path', async function () {
7272
const workspace = await testutil.createTestWorkspaceFolder()
73-
const fakeSshPath = path.join(workspace.uri.fsPath, `ssh${isWin() ? '.cmd' : ''}`)
73+
const fakeSshPath = path.join(workspace.uri.fsPath, `ssh`)
7474
await fs.writeFile(fakeSshPath, 'this is not executable')
7575

7676
testutil.setEnv(testutil.envWithNewPath(workspace.uri.fsPath))

0 commit comments

Comments
 (0)