Skip to content

Commit cc61e8b

Browse files
Update function name
1 parent a7af06f commit cc61e8b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/test/debuggerTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as path from 'path';
55
import { runTests } from '@vscode/test-electron';
66
import { EXTENSION_ROOT_DIR_FOR_TESTS } from './constants';
7-
import { getChannel } from './utils/vscode';
7+
import { getVersion } from './utils/vscode';
88

99
const workspacePath = path.join(__dirname, '..', '..', 'src', 'testMultiRootWkspc', 'multi.code-workspace');
1010
process.env.IS_CI_SERVER_TEST_DEBUGGER = '1';
@@ -17,7 +17,7 @@ function start() {
1717
extensionDevelopmentPath: EXTENSION_ROOT_DIR_FOR_TESTS,
1818
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
1919
launchArgs: [workspacePath],
20-
version: getChannel(),
20+
version: getVersion(),
2121
extensionTestsEnv: { ...process.env, UITEST_DISABLE_INSIDERS: '1' },
2222
}).catch((ex) => {
2323
console.error('End Debugger tests (with errors)', ex);

src/test/multiRootTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from 'path';
22
import { runTests } from '@vscode/test-electron';
33
import { EXTENSION_ROOT_DIR_FOR_TESTS } from './constants';
44
import { initializeLogger } from './testLogger';
5-
import { getChannel } from './utils/vscode';
5+
import { getVersion } from './utils/vscode';
66

77
const workspacePath = path.join(__dirname, '..', '..', 'src', 'testMultiRootWkspc', 'multi.code-workspace');
88
process.env.IS_CI_SERVER_TEST_DEBUGGER = '';
@@ -17,7 +17,7 @@ function start() {
1717
extensionDevelopmentPath: EXTENSION_ROOT_DIR_FOR_TESTS,
1818
extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'),
1919
launchArgs: [workspacePath],
20-
version: getChannel(),
20+
version: getVersion(),
2121
extensionTestsEnv: { ...process.env, UITEST_DISABLE_INSIDERS: '1' },
2222
}).catch((ex) => {
2323
console.error('End Multiroot tests (with errors)', ex);

src/test/standardTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as path from 'path';
55
import { downloadAndUnzipVSCode, resolveCliPathFromVSCodeExecutablePath, runTests } from '@vscode/test-electron';
66
import { JUPYTER_EXTENSION_ID, PYLANCE_EXTENSION_ID } from '../client/common/constants';
77
import { EXTENSION_ROOT_DIR_FOR_TESTS } from './constants';
8-
import { getChannel } from './utils/vscode';
8+
import { getVersion } from './utils/vscode';
99

1010
// If running smoke tests, we don't have access to this.
1111
if (process.env.TEST_FILES_SUFFIX !== 'smoke.test') {
@@ -76,7 +76,7 @@ async function installPylanceExtension(vscodeExecutablePath: string) {
7676
async function start() {
7777
console.log('*'.repeat(100));
7878
console.log('Start Standard tests');
79-
const channel = getChannel();
79+
const channel = getVersion();
8080
console.log(`Using ${channel} build of VS Code.`);
8181
const vscodeExecutablePath = await downloadAndUnzipVSCode(channel);
8282
const baseLaunchArgs =

src/test/utils/vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from 'path';
22
import * as fs from 'fs-extra';
33
import { EXTENSION_ROOT_DIR } from '../../client/common/constants';
44

5-
export function getChannel(): string {
5+
export function getVersion(): string {
66
if (process.env.VSC_PYTHON_CI_TEST_VSC_CHANNEL) {
77
return process.env.VSC_PYTHON_CI_TEST_VSC_CHANNEL;
88
}

0 commit comments

Comments
 (0)