Skip to content

Commit

Permalink
SLVSCODE-972 try fix flaky autobinding test
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Jan 6, 2025
1 parent 57c0c93 commit d07bb7d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/suite/autobinding.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ suite('Auto Binding Test Suite', () => {
.getConfiguration(SONARLINT_CATEGORY, folder.uri)
.update(BINDING_SETTINGS, undefined, VSCode.ConfigurationTarget.WorkspaceFolder);
}));
deleteSettingsFiles();
});

test('Should show binding suggestion notification', async () => {
Expand Down Expand Up @@ -439,7 +438,7 @@ suite('Auto Binding Test Suite', () => {
});
});

async function deleteSettingsFiles() {
async function cleanBindings() {
const workspaceFolders = VSCode.workspace.workspaceFolders;
if (workspaceFolders) {
for (const folder of workspaceFolders) {
Expand All @@ -452,9 +451,3 @@ async function deleteSettingsFiles() {
}
}
}

async function cleanBindings() {
return VSCode.workspace
.getConfiguration(SONARLINT_CATEGORY, VSCode.workspace.workspaceFolders[0].uri)
.update(BINDING_SETTINGS, undefined, VSCode.ConfigurationTarget.WorkspaceFolder);
}

0 comments on commit d07bb7d

Please sign in to comment.