Skip to content

Commit

Permalink
[CONJ-17] pool option testing minDelayValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jul 17, 2018
1 parent 2cb388c commit 8bb5a7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/integration/test-pool-callback.js
Expand Up @@ -161,7 +161,7 @@ describe("Pool callback", () => {
});

it("connection fail handling", function(done) {
const pool = base.createPoolCallback({ connectionLimit: 2 });
const pool = base.createPoolCallback({ connectionLimit: 2, minDelayValidation: 200 });
setTimeout(() => {
//check available connections in pool
assert.equal(pool.activeConnections(), 0);
Expand Down Expand Up @@ -199,7 +199,7 @@ describe("Pool callback", () => {
});

it("query fail handling", function(done) {
const pool = base.createPoolCallback({ connectionLimit: 2 });
const pool = base.createPoolCallback({ connectionLimit: 2, minDelayValidation: 200 });
setTimeout(() => {
//check available connections in pool
assert.equal(pool.activeConnections(), 0);
Expand Down
4 changes: 2 additions & 2 deletions test/integration/test-pool.js
Expand Up @@ -188,7 +188,7 @@ describe("Pool", () => {
});

it("connection fail handling", function(done) {
const pool = base.createPool({ connectionLimit: 2 });
const pool = base.createPool({ connectionLimit: 2, minDelayValidation: 200 });
setTimeout(() => {
//check available connections in pool
assert.equal(pool.activeConnections(), 0);
Expand Down Expand Up @@ -225,7 +225,7 @@ describe("Pool", () => {
});

it("query fail handling", function(done) {
const pool = base.createPool({ connectionLimit: 2 });
const pool = base.createPool({ connectionLimit: 2, minDelayValidation: 200 });
setTimeout(() => {
//check available connections in pool
assert.equal(pool.activeConnections(), 0);
Expand Down

0 comments on commit 8bb5a7b

Please sign in to comment.