test: await setTimeout (#4643)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-10-16 21:14:45 -05:00
1 parent 5e9eeaddbd
commit b3dc4dce9c
1 file changed
+1 -1
@@ -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);