Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 26, 2022
1 parent f65bdac commit 9a60707
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/database/query-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import { test } from '@japa/runner'
import { ApplicationContract } from '@ioc:Adonis/Core/Application'
import { resolveClientNameWithAliases } from 'knex/lib/util/helpers'

import { Connection } from '../../src/Connection'
import { QueryClient } from '../../src/QueryClient'
Expand Down Expand Up @@ -401,9 +400,7 @@ if (!['sqlite', 'mssql', 'better_sqlite'].includes(process.env.DB as string)) {

const client = new QueryClient('dual', connection, app.container.use('Adonis/Core/Event'))
const lock = await client.dialect.getAdvisoryLock(1)

assert.isTrue(lock)
assert.equal(client.dialect.name, resolveClientNameWithAliases(connection.config.client))

await client.dialect.releaseAdvisoryLock(1)
await connection.disconnect()
Expand Down

0 comments on commit 9a60707

Please sign in to comment.