Skip to content

Commit

Permalink
Close connection after version check
Browse files Browse the repository at this point in the history
  • Loading branch information
aheuermann committed Dec 28, 2019
1 parent 8390432 commit 6ddbe6a
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -14,11 +14,13 @@ function testClientVersion(cb) {
var client = new Client({})
client.connect(assert.success(function () {
helper.versionGTE(client, 100000, assert.success(function(isGreater) {
if (!isGreater) {
console.log('skip idle_in_transaction_session_timeout at client-level is only available in v10 and above');
return client.end();
}
cb();
return client.end(assert.success(function () {
if (!isGreater) {
console.log('skip idle_in_transaction_session_timeout at client-level is only available in v10 and above');
return;
}
cb();
}))
}))
}))
}
Expand Down

0 comments on commit 6ddbe6a

Please sign in to comment.