Skip to content

Commit

Permalink
fix setup in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Erik Roald committed Dec 6, 2023
1 parent ccfaa3e commit f566ed2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/insert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,15 @@ describe('transaction', () => {
test('sap', async () => await verify('sap'));

async function verify(dbName) {
const { db, init } = getDb(dbName);
if (dbName === 'http') {
const { db, init } = getDb('sqlite2');
await init(db);
}
else
await init(db);

let result;
const { db } = getDb(dbName);

await db.transaction(async (db) => {
await db.customer.insert({
Expand Down Expand Up @@ -723,7 +730,7 @@ const connections = {
password: 'P@assword123',
}
}
}, {size: 1})
}, { size: 1 })
},),
init: initMs
},
Expand Down

0 comments on commit f566ed2

Please sign in to comment.