Browse Source

test: use independent db's for sqlite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
test/0525-tz2
Raju Udava 2 years ago
parent
commit
6b60af791f
  1. 4
      tests/playwright/tests/db/timezone.spec.ts

4
tests/playwright/tests/db/timezone.spec.ts

@ -86,7 +86,7 @@ async function connectToExtDb(context: any, dbName: string) {
client: 'sqlite3',
database: dbName,
connection: {
filename: '../../tests/playwright/mydb.sqlite3',
filename: `../../tests/playwright/${dbName}.sqlite3`,
},
useNullAsDefault: true,
},
@ -448,7 +448,7 @@ async function createTableWithDateTimeColumn(database: string, dbName: string, s
`);
await mysqlknex2.destroy();
} else if (database === 'sqlite') {
const config = getKnexConfig({ dbName: 'mydb', dbType: 'sqlite' });
const config = getKnexConfig({ dbName, dbType: 'sqlite' });
// SQLite supports just one type of datetime
// Timezone information, if specified is stored as is in the database

Loading…
Cancel
Save