diff --git a/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx b/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx index 4440b20af9..55bf1ca299 100644 --- a/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx +++ b/web/app/components/rag-pipeline/components/update-dsl-modal.spec.tsx @@ -153,7 +153,7 @@ describe('UpdateDSLModal', () => { // Helper function to flush FileReader microtasks const flushFileReader = async () => { - await flushFileReader() + await new Promise(resolve => queueMicrotask(resolve)) } beforeEach(() => {