diff --git a/integration-tests/tests/sqlite/libsql-http.test.ts b/integration-tests/tests/sqlite/libsql-http.test.ts index bd4f66879..576d8d48a 100644 --- a/integration-tests/tests/sqlite/libsql-http.test.ts +++ b/integration-tests/tests/sqlite/libsql-http.test.ts @@ -124,7 +124,7 @@ test('test $onUpdateFn and $onUpdate works as $default', async (ctx) => { { name: 'Jack', id: 3, updateCounter: 1, alwaysNull: null }, { name: 'Jill', id: 4, updateCounter: 1, alwaysNull: null }, ]); - const msDelay = 750; + const msDelay = 1750; for (const eachUser of justDates) { expect(eachUser.updatedAt!.valueOf()).toBeGreaterThan(Date.now() - msDelay); @@ -169,7 +169,7 @@ test('test $onUpdateFn and $onUpdate works updating', async (ctx) => { { name: 'Jack', id: 3, updateCounter: 1, alwaysNull: null }, { name: 'Jill', id: 4, updateCounter: 1, alwaysNull: null }, ]); - const msDelay = 750; + const msDelay = 1750; for (const eachUser of justDates) { expect(eachUser.updatedAt!.valueOf()).toBeGreaterThan(Date.now() - msDelay); diff --git a/integration-tests/tests/sqlite/libsql-ws.test.ts b/integration-tests/tests/sqlite/libsql-ws.test.ts index 6d84d6c9e..86810a36f 100644 --- a/integration-tests/tests/sqlite/libsql-ws.test.ts +++ b/integration-tests/tests/sqlite/libsql-ws.test.ts @@ -124,7 +124,7 @@ test('test $onUpdateFn and $onUpdate works as $default', async (ctx) => { { name: 'Jack', id: 3, updateCounter: 1, alwaysNull: null }, { name: 'Jill', id: 4, updateCounter: 1, alwaysNull: null }, ]); - const msDelay = 750; + const msDelay = 1250; for (const eachUser of justDates) { expect(eachUser.updatedAt!.valueOf()).toBeGreaterThan(Date.now() - msDelay); @@ -169,7 +169,7 @@ test('test $onUpdateFn and $onUpdate works updating', async (ctx) => { { name: 'Jack', id: 3, updateCounter: 1, alwaysNull: null }, { name: 'Jill', id: 4, updateCounter: 1, alwaysNull: null }, ]); - const msDelay = 750; + const msDelay = 1250; for (const eachUser of justDates) { expect(eachUser.updatedAt!.valueOf()).toBeGreaterThan(Date.now() - msDelay); @@ -182,6 +182,7 @@ skipTests([ 'join view as subquery', 'test $onUpdateFn and $onUpdate works as $default', 'test $onUpdateFn and $onUpdate works updating', + 'prepared statement reuse', ]); tests(); diff --git a/integration-tests/vitest.config.ts b/integration-tests/vitest.config.ts index 5465c4047..84ea9b1c8 100644 --- a/integration-tests/vitest.config.ts +++ b/integration-tests/vitest.config.ts @@ -54,6 +54,9 @@ export default defineConfig({ // todo: remove 'js-tests/driver-init/module/vercel.test.mjs', 'js-tests/driver-init/commonjs/vercel.test.cjs', + // move back after decide on speed + 'tests/sqlite/libsql-ws.test.ts', + 'tests/sqlite/libsql-http.test.ts', ], typecheck: { tsconfig: 'tsconfig.json',