Skip to content

Commit ca0fd5b

Browse files
authored
fix: test on pool (#706)
1 parent 9a3a8ec commit ca0fd5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/pool.database.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { PoolManager } from '@internal/database/pool'
22
import { getConfig } from '../config'
33
import { getServiceKeyUser } from '@internal/database'
44

5-
const { databasePoolURL, tenantId } = getConfig()
5+
const { databaseURL, databasePoolURL, tenantId } = getConfig()
66

77
describe('TenantPool Database', () => {
88
it('can acquire a on a destroyed pool', async () => {
@@ -12,7 +12,7 @@ describe('TenantPool Database', () => {
1212
tenantId,
1313
isExternalPool: true,
1414
maxConnections: 20,
15-
dbUrl: databasePoolURL!,
15+
dbUrl: databasePoolURL || databaseURL,
1616
user: superUser,
1717
superUser,
1818
})

0 commit comments

Comments
 (0)