Skip to content

Commit 8b8ff41

Browse files
committed
Deflake node test
1 parent 476fdf7 commit 8b8ff41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/tests/sync.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function defineSyncTests(impl: SyncClientImplementation) {
463463
mockSyncServiceTest('should upload after connecting', async ({ syncService }) => {
464464
let database = await syncService.createDatabase();
465465

466-
database.execute('INSERT INTO lists (id, name) values (uuid(), ?)', ['local write']);
466+
await database.execute('INSERT INTO lists (id, name) values (uuid(), ?)', ['local write']);
467467
const query = database.watchWithAsyncGenerator('SELECT name FROM lists')[Symbol.asyncIterator]();
468468
let rows = (await query.next()).value.rows._array;
469469
expect(rows).toStrictEqual([{ name: 'local write' }]);

0 commit comments

Comments
 (0)