fix db test

This commit is contained in:
Bernat Exposito Domenech 2020-03-05 14:06:55 +01:00
parent f3e4bc7aeb
commit 63faeab909
1 changed files with 5 additions and 1 deletions

View File

@ -318,6 +318,8 @@ fdescribe('worker workerTimeControl_check()', () => {
let stmts = [];
let stmt;
stmts.push('SET @warn := NULL');
stmts.push('START TRANSACTION');
stmt = new ParameterizedSQL(`INSERT INTO vn.workerTimeControl(userFk,timed,manual,direction)
@ -362,9 +364,9 @@ fdescribe('worker workerTimeControl_check()', () => {
tabletId
]);
stmts.push(stmt);
stmts.push('ROLLBACK');
let warningMessageIndex = stmts.push('SELECT @warn AS warning') - 1;
stmts.push('ROLLBACK');
let sql = ParameterizedSQL.join(stmts, ';');
let result = await app.models.Worker.rawStmt(sql);
@ -377,6 +379,8 @@ fdescribe('worker workerTimeControl_check()', () => {
let stmts = [];
let stmt;
stmts.push('SET @warn := NULL');
stmts.push('START TRANSACTION');
stmt = new ParameterizedSQL(`INSERT INTO vn.workerTimeControl(userFk,timed,manual,direction)