Skip to content

Commit 2dbda54

Browse files
committed
Apply throttle to node watch test
1 parent a03945a commit 2dbda54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/tests/PowerSyncDatabase.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ databaseTest('can watch tables', async ({ database }) => {
5555
});
5656

5757
databaseTest('can watch queries', async ({ database }) => {
58-
const query = await database.watch('SELECT * FROM todos;')[Symbol.asyncIterator]();
58+
const query = await database.watch('SELECT * FROM todos;', [], {throttleMs: 100})[Symbol.asyncIterator]();
5959
expect((await query.next()).value.rows).toHaveLength(0);
6060

6161
await database.execute('INSERT INTO todos (id, content) VALUES (uuid(), ?)', ['first']);

0 commit comments

Comments
 (0)