Close connection after version check

This commit is contained in:
Andrew Heuermann 2019-12-28 09:24:45 -06:00
parent 839043206d
commit 6ddbe6ab60
No known key found for this signature in database
GPG Key ID: 5E0F5EFFE041EF4A

View File

@ -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();
}))
}))
}))
}