@@ -945,6 +945,7 @@ describe("72. lobBind2.js", function() {
945945
946946 lob . on ( "error" , function ( err ) {
947947 should . not . exist ( err , "lob.on 'error' event." ) ;
948+ reject ( err ) ;
948949 } ) ;
949950
950951 lob . on ( "end" , function ( ) {
@@ -982,13 +983,14 @@ describe("72. lobBind2.js", function() {
982983
983984 lob . on ( "error" , function ( err ) {
984985 should . not . exist ( err , "lob.on 'error' event." ) ;
986+ reject ( err ) ;
985987 } ) ;
986988
987989 lob . on ( "finish" , async function ( ) {
988990 const sql = `insert into nodb_tab_nclob72 (id, content)
989991 values (:id, :bindvar)` ;
990992 const result = await connection . execute ( sql ,
991- { id : seq , bindvar : lob } ) ;
993+ { id : seq , bindvar : lob } ) ;
992994 should . strictEqual ( result . rowsAffected , 1 ) ;
993995 await lob . close ( ) ;
994996 } ) ; // finish event
@@ -1035,6 +1037,7 @@ describe("72. lobBind2.js", function() {
10351037
10361038 lob . on ( "error" , function ( err ) {
10371039 should . not . exist ( err , "lob.on 'error' event." ) ;
1040+ reject ( err ) ;
10381041 } ) ;
10391042
10401043 lob . on ( "finish" , async function ( ) {
@@ -1108,13 +1111,14 @@ describe("72. lobBind2.js", function() {
11081111
11091112 lob . on ( "error" , function ( err ) {
11101113 should . not . exist ( err , "lob.on 'error' event." ) ;
1114+ reject ( err ) ;
11111115 } ) ;
11121116
11131117 lob . on ( "finish" , async function ( ) {
11141118 const sql = `update nodb_tab_nclob72 set content = :bindvar
11151119 where id = :id` ;
11161120 const result = await connection . execute ( sql ,
1117- { id : seq , bindvar : lob } ) ;
1121+ { id : seq , bindvar : lob } ) ;
11181122 should . strictEqual ( result . rowsAffected , 1 ) ;
11191123 await lob . close ( ) ;
11201124 await connection . commit ( ) ;
@@ -1159,14 +1163,15 @@ describe("72. lobBind2.js", function() {
11591163
11601164 lob . on ( "error" , function ( err ) {
11611165 should . not . exist ( err , "lob.on 'error' event." ) ;
1166+ reject ( err ) ;
11621167 } ) ;
11631168
11641169 lob . on ( "finish" , async function ( ) {
11651170 const sql = `begin nodb_proc_nclob_inout1(:id, :io); end;` ;
11661171 const binds = {
11671172 id : seq ,
11681173 io : { type : oracledb . DB_TYPE_NCLOB ,
1169- dir : oracledb . BIND_INOUT , val : lob }
1174+ dir : oracledb . BIND_INOUT , val : lob }
11701175 } ;
11711176 const options = { autoCommit : true } ;
11721177 const result = await connection . execute ( sql , binds , options ) ;
@@ -1183,6 +1188,7 @@ describe("72. lobBind2.js", function() {
11831188
11841189 lobout . on ( "error" , function ( err ) {
11851190 should . not . exist ( err , "lob.on 'error' event." ) ;
1191+ reject ( err ) ;
11861192 } ) ;
11871193
11881194 lobout . on ( "end" , async function ( ) {
0 commit comments