Skip to content

Commit

Permalink
test: await setTimeout (#4643)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored Oct 17, 2023
1 parent 5e9eead commit b3dc4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/y-provider/src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3dc4dc

Please sign in to comment.