Skip to content

Commit

Permalink
Update o# integration tests to specify new setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Sep 8, 2023
1 parent 326c0b7 commit 67425d6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ suite(`DotnetTest: ${testAssetWorkspace.description}`, function () {
});

test('Undefined runsettings path is unchanged', async function () {
const omnisharpConfig = vscode.workspace.getConfiguration('omnisharp');
await omnisharpConfig.update('testRunSettings', undefined);
const omnisharpConfig = vscode.workspace.getConfiguration('dotnet');
await omnisharpConfig.update('unitTests.runSettingsPath', undefined);

const eventWaiter = testAssetWorkspace.waitForEvent<OmnisharpRequestMessage>(
eventStream,
Expand All @@ -69,8 +69,8 @@ suite(`DotnetTest: ${testAssetWorkspace.description}`, function () {
const relativeRunSettingsPath = `.\\settings\\TestSettings.runsettings`.replace('\\', path.sep);
const absoluteRunSettingsPath = path.join(process.cwd(), relativeRunSettingsPath);

const omnisharpConfig = vscode.workspace.getConfiguration('omnisharp');
await omnisharpConfig.update('testRunSettings', absoluteRunSettingsPath);
const omnisharpConfig = vscode.workspace.getConfiguration('dotnet');
await omnisharpConfig.update('unitTests.runSettingsPath', absoluteRunSettingsPath);

const eventWaiter = testAssetWorkspace.waitForEvent<OmnisharpRequestMessage>(
eventStream,
Expand All @@ -91,8 +91,8 @@ suite(`DotnetTest: ${testAssetWorkspace.description}`, function () {
const endingPath = 'settings\\TestSettings.runsettings'.replace('\\', path.sep);
const relativeRunSettingPath = `.\\${endingPath}`.replace('\\', path.sep);

const omnisharpConfig = vscode.workspace.getConfiguration('omnisharp');
await omnisharpConfig.update('testRunSettings', relativeRunSettingPath);
const omnisharpConfig = vscode.workspace.getConfiguration('dotnet');
await omnisharpConfig.update('unitTests.runSettingsPath', relativeRunSettingPath);

const eventWaiter = testAssetWorkspace.waitForEvent<OmnisharpRequestMessage>(
eventStream,
Expand Down

0 comments on commit 67425d6

Please sign in to comment.