From d07bb7dd38a156546dcce9bac1523b96db8fdef7 Mon Sep 17 00:00:00 2001 From: Sophio Japharidze Date: Fri, 3 Jan 2025 17:07:43 +0100 Subject: [PATCH] SLVSCODE-972 try fix flaky autobinding test --- test/suite/autobinding.test.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/suite/autobinding.test.ts b/test/suite/autobinding.test.ts index fe33568c7..663b2b5ba 100644 --- a/test/suite/autobinding.test.ts +++ b/test/suite/autobinding.test.ts @@ -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 () => { @@ -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) { @@ -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); -}