Skip to content

Commit

Permalink
Merge pull request #288 from balderdashy/pg-upgrade-fixes
Browse files Browse the repository at this point in the history
Fix tests after upgrading pg dependency
  • Loading branch information
rachaelshaw authored Sep 24, 2020
2 parents e71b8d7 + 37833fd commit 650116b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions test/adapter/unit/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('Unit Tests ::', function() {
// it's connections properly.
it('should release its connection when completed', function(done) {
var manager = Adapter.datastores.test.manager;
var preConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var preConnectionsAvailable = manager.pool.idleCount;

var query = {
using: 'test_create',
Expand All @@ -154,7 +154,7 @@ describe('Unit Tests ::', function() {
return done(err);
}

var postConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var postConnectionsAvailable = manager.pool.idleCount;
assert.equal(preConnectionsAvailable, postConnectionsAvailable);

return done();
Expand Down
6 changes: 3 additions & 3 deletions test/adapter/unit/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ describe('Unit Tests ::', function() {

// Look into the bowels of the PG Driver and ensure the Create function handles
// it's connections properly.
it('should release it\'s connection when completed', function(done) {
it('should release its connection when completed', function(done) {
var manager = Adapter.datastores.test.manager;
var preConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var preConnectionsAvailable = manager.pool.idleCount;

var query = {
using: 'test_destroy',
Expand All @@ -63,7 +63,7 @@ describe('Unit Tests ::', function() {
return done(err);
}

var postConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var postConnectionsAvailable = manager.pool.idleCount;
assert.equal(preConnectionsAvailable, postConnectionsAvailable);

return done();
Expand Down
6 changes: 3 additions & 3 deletions test/adapter/unit/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ describe('Unit Tests ::', function() {

// Look into the bowels of the PG Driver and ensure the Create function handles
// it's connections properly.
it('should release it\'s connection when completed', function(done) {
it('should release its connection when completed', function(done) {
var manager = Adapter.datastores.test.manager;
var preConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var preConnectionsAvailable = manager.pool.idleCount;

var query = {
using: 'test_find',
Expand All @@ -128,7 +128,7 @@ describe('Unit Tests ::', function() {
return done(err);
}

var postConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var postConnectionsAvailable = manager.pool.idleCount;
assert.equal(preConnectionsAvailable, postConnectionsAvailable);

return done();
Expand Down
6 changes: 3 additions & 3 deletions test/adapter/unit/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ describe('Unit Tests ::', function() {

// Look into the bowels of the PG Driver and ensure the Create function handles
// it's connections properly.
it('should release it\'s connection when completed', function(done) {
it('should release its connection when completed', function(done) {
var manager = Adapter.datastores.test.manager;
var preConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var preConnectionsAvailable = manager.pool.idleCount;

var query = {
using: 'test_update',
Expand All @@ -98,7 +98,7 @@ describe('Unit Tests ::', function() {
return done(err);
}

var postConnectionsAvailable = manager.pool.pool.availableObjectsCount();
var postConnectionsAvailable = manager.pool.idleCount;
assert.equal(preConnectionsAvailable, postConnectionsAvailable);

return done();
Expand Down

0 comments on commit 650116b

Please sign in to comment.