diff --git a/test/helpers.js b/test/helpers.js index c068533..4bf3558 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -1,7 +1,7 @@ 'use strict' const BAD_DB_NAME = 'db_that_does_not_exist' -const connectionString = process.env.DATABASE_TEST_URL || 'postgres://postgres:postgres@localhost/postgres' +const connectionString = process.env.DATABASE_TEST_URL || 'postgres://postgres:postgres@127.0.0.1/postgres' const connectionStringBadDbName = connectionString.replace(/\/[^/]+$/, '/' + BAD_DB_NAME) module.exports = Object.freeze({ diff --git a/test/transaction.test.js b/test/transaction.test.js index 3f9d4cb..de636d6 100644 --- a/test/transaction.test.js +++ b/test/transaction.test.js @@ -13,7 +13,7 @@ const { test('When fastify.pg root namespace is used:', (t) => { t.test('Should be able to use transact util with a callback', (t) => { - t.plan(3) + t.plan(4) const fastify = Fastify() t.teardown(() => fastify.close())