From 4cb84c11b09dac6eb0791e35b95ff6f571130391 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 24 Oct 2024 18:01:29 +0700 Subject: [PATCH] fix: pause between tests to avoid db lock --- core/autocomplete/test/filter.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/autocomplete/test/filter.test.ts b/core/autocomplete/test/filter.test.ts index 98cef6be6..502c0aaa3 100644 --- a/core/autocomplete/test/filter.test.ts +++ b/core/autocomplete/test/filter.test.ts @@ -3,6 +3,10 @@ import { testCases } from "./testCases"; describe("llms/Mock", () => { describe("Autocomplete Filtering Tests", () => { + beforeEach(async () => { + await new Promise((resolve) => setTimeout(resolve, 50)); + }); + it.each(testCases)("$description", async (testCase) => { await testAutocompleteFiltering(testCase); });