test-to-dev #1478
|
@ -52,7 +52,7 @@ module.exports = Self => {
|
|||
const container = await $.ImageContainer.container(collection);
|
||||
const rootPath = container.client.root;
|
||||
|
||||
const tx = await Self.beginTransaction({});
|
||||
const tx = await Self.beginTransaction({timeout: null});
|
||||
const opts = {transaction: tx};
|
||||
|
||||
const lockName = 'salix.Image.scrub';
|
||||
|
|
|
@ -21,8 +21,8 @@ module.exports = function(Self) {
|
|||
let orgBeginTransaction = this.beginTransaction;
|
||||
this.beginTransaction = function(options, cb) {
|
||||
options = options || {};
|
||||
if (!options.timeout)
|
||||
options.timeout = 120000;
|
||||
if (options.timeout === undefined)
|
||||
options.timeout = 120 * 1000;
|
||||
return orgBeginTransaction.call(this, options, cb);
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue