mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
benchmark: complete the sqlite is-transaction fix
Signed-off-by: geeksilva97 <edigleyssonsilva@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65218 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
922d47cbd7
commit
fbec4eb386
1 file changed
+3
-3
@@ -16,14 +16,14 @@ function main(conf) {
|
||||
}
|
||||
|
||||
let i;
|
||||
let deadCodeElimination = true;
|
||||
let deadCodeElimination;
|
||||
|
||||
bench.start();
|
||||
for (i = 0; i < conf.n; i += 1)
|
||||
deadCodeElimination &&= db.isTransaction;
|
||||
deadCodeElimination = db.isTransaction;
|
||||
bench.end(conf.n);
|
||||
|
||||
assert.ok(deadCodeElimination === (conf.transaction === 'true'));
|
||||
assert.strictEqual(deadCodeElimination, conf.transaction === 'true');
|
||||
|
||||
if (conf.transaction === 'true') {
|
||||
db.exec('ROLLBACK');
|
||||
|
||||
Reference in new issue
Block a user