diff --git a/packages/y-provider/src/__tests__/index.spec.ts b/packages/y-provider/src/__tests__/index.spec.ts index 86d45e537bd5b..0543f70f9ab0f 100644 --- a/packages/y-provider/src/__tests__/index.spec.ts +++ b/packages/y-provider/src/__tests__/index.spec.ts @@ -186,7 +186,7 @@ describe('y-provider', () => { provider.disconnect(); subdoc.getText('text').insert(0, 'test-subdoc-value'); - setTimeout(); + await setTimeout(); expect(remoteSubdoc.getText('text').toJSON()).toBe(''); expect(provider.connected).toBe(false);