Skip to content

Commit 10ab84e

Browse files
Shapovalov KirillShapovalov Kirill
authored andcommitted
Fix test_functions_recreate console output
1 parent 2bbe513 commit 10ab84e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/test_functions_recreate.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ exports.test = function(sql, assert) {
1212
}catch(e)
1313
{
1414
assert.ok(false,"Test 1: Recreate database "+i+"th times and register function failed with exception:"+e);
15+
db.close();
1516
break;
1617
}
1718
var result = db.exec("SELECT TestFunction"+i+"()");
1819
var result_str = result[0]["values"][0][0];
19-
if((result_str!=i)||(lastStep))
20+
if((result_str!=i)||lastStep)
21+
{
2022
assert.equal(result_str, i, "Test 1: Recreate database "+i+"th times and register function");
23+
db.close();
24+
break;
25+
}
2126
db.close();
2227
}
2328

@@ -38,8 +43,11 @@ exports.test = function(sql, assert) {
3843
}
3944
var result = db.exec("SELECT TestFunction()");
4045
var result_str = result[0]["values"][0][0];
41-
if((result_str!=i)||(lastStep))
46+
if((result_str!=i)||lastStep)
47+
{
4248
assert.equal(result_str, i, "Test 2: Reregister function "+i+"th times");
49+
break;
50+
}
4351
}
4452
db.close();
4553
}

0 commit comments

Comments
 (0)