Drain pool connection before
This commit is contained in:
@@ -94,7 +94,7 @@ const DATASOURCE_TIMEOUT_ERROR = {
|
||||
}]
|
||||
};
|
||||
|
||||
describe('user database timeout limit', function () {
|
||||
describe.only('user database timeout limit', function () {
|
||||
describe('dataview', function () {
|
||||
beforeEach(function (done) {
|
||||
const mapconfig = createMapConfig();
|
||||
|
||||
@@ -1275,6 +1275,11 @@ TestClient.prototype.setUserDatabaseTimeoutLimit = function (timeoutLimit, callb
|
||||
});
|
||||
|
||||
step(
|
||||
// we need to guarantee all new connections have the new settings
|
||||
function beforeRefreshPoolConnection () {
|
||||
const next = this;
|
||||
psql.end(() => next());
|
||||
},
|
||||
function configureTimeouts () {
|
||||
const timeoutSQLs = [
|
||||
`ALTER ROLE "${publicuser}" SET STATEMENT_TIMEOUT TO ${timeoutLimit}`,
|
||||
|
||||
Reference in New Issue
Block a user