diff --git a/core/autocomplete/filtering/test/filter.vitest.ts b/core/autocomplete/filtering/test/filter.vitest.ts index 887236f8ad..3c13f74d94 100644 --- a/core/autocomplete/filtering/test/filter.vitest.ts +++ b/core/autocomplete/filtering/test/filter.vitest.ts @@ -30,10 +30,6 @@ describe("Autocomplete filtering tests", () => { tearDownTestDir(); }); - beforeEach(async () => { - await new Promise((resolve) => setTimeout(resolve, 50)); - }); - describe("Should return unmodified LLM output", () => { it.each(filterTestCases(TEST_CASES_WITHOUT_DIFF))( "$description", diff --git a/core/autocomplete/filtering/test/util.ts b/core/autocomplete/filtering/test/util.ts index aeb4b2ed98..9086f86b46 100644 --- a/core/autocomplete/filtering/test/util.ts +++ b/core/autocomplete/filtering/test/util.ts @@ -68,6 +68,7 @@ export async function testAutocompleteFiltering( const result = await completionProvider.provideInlineCompletionItems( autocompleteInput, undefined, + true, // force=true to skip debounce in tests ); // Ensure that we return the text that is wanted to be displayed