File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments