Skip to content

Commit 9265002

Browse files
committed
Deflake node test
1 parent da6f7d5 commit 9265002

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
@@ -440,7 +440,7 @@ function defineSyncTests(impl: SyncClientImplementation) {
440440
mockSyncServiceTest('should upload after connecting', async ({ syncService }) => {
441441
let database = await syncService.createDatabase();
442442

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

0 commit comments

Comments
 (0)