Fix flake in generic-sql.spec.ts.
This commit is contained in:
parent
c107ab937d
commit
903c3cf84d
|
@ -63,6 +63,7 @@ describe.each(
|
||||||
|
|
||||||
client = await knexClient(rawDatasource)
|
client = await knexClient(rawDatasource)
|
||||||
|
|
||||||
|
await client.schema.dropTableIfExists("test_table")
|
||||||
await client.schema.createTable("test_table", table => {
|
await client.schema.createTable("test_table", table => {
|
||||||
table.increments("id").primary()
|
table.increments("id").primary()
|
||||||
table.string("name")
|
table.string("name")
|
||||||
|
@ -84,7 +85,6 @@ describe.each(
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
const ds = await config.api.datasource.get(datasource._id!)
|
const ds = await config.api.datasource.get(datasource._id!)
|
||||||
await config.api.datasource.delete(ds)
|
await config.api.datasource.delete(ds)
|
||||||
await client.schema.dropTable("test_table")
|
|
||||||
})
|
})
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
|
Loading…
Reference in New Issue