Skip to content

Commit c0b05fc

Browse files
committed
minor updates in database connection tests
1 parent 256e6e8 commit c0b05fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/database.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const isWin = os.type().search('Windows') > -1;
1515
let database, pool;
1616
const pgServiceName = process.env.PG_SERVICE_NAME;
1717

18-
describe.only('Database;', function () {
18+
describe('Database;', function () {
1919
this.timeout(45000);
2020

2121
before(async done => {
@@ -88,7 +88,7 @@ describe.only('Database;', function () {
8888
database.on(ERROR_EVENT, function dbErrorHandler(err) {
8989
try {
9090
expect(err).to.be.an.instanceof(Error);
91-
expect(err.message).to.include(isWin ? '' : 'terminating connection');
91+
expect(err.message).to.include('terminating connection');
9292

9393
checkPoolState(0, 0, PoolState.active);
9494

@@ -124,7 +124,7 @@ describe.only('Database;', function () {
124124
try {
125125
expect(session).to.be.undefined;
126126
expect(err).to.be.an.instanceof(Error);
127-
expect(err.message).to.include(isWin ? '' : 'ECONNREFUSED');
127+
expect(err.message).to.include(isWin ? 'shutting down' : 'ECONNREFUSED');
128128

129129
checkPoolState(0, 0, PoolState.active);
130130

0 commit comments

Comments
 (0)