@@ -945,6 +945,7 @@ describe("72. lobBind2.js", function() {
945
945
946
946
lob . on ( "error" , function ( err ) {
947
947
should . not . exist ( err , "lob.on 'error' event." ) ;
948
+ reject ( err ) ;
948
949
} ) ;
949
950
950
951
lob . on ( "end" , function ( ) {
@@ -982,13 +983,14 @@ describe("72. lobBind2.js", function() {
982
983
983
984
lob . on ( "error" , function ( err ) {
984
985
should . not . exist ( err , "lob.on 'error' event." ) ;
986
+ reject ( err ) ;
985
987
} ) ;
986
988
987
989
lob . on ( "finish" , async function ( ) {
988
990
const sql = `insert into nodb_tab_nclob72 (id, content)
989
991
values (:id, :bindvar)` ;
990
992
const result = await connection . execute ( sql ,
991
- { id : seq , bindvar : lob } ) ;
993
+ { id : seq , bindvar : lob } ) ;
992
994
should . strictEqual ( result . rowsAffected , 1 ) ;
993
995
await lob . close ( ) ;
994
996
} ) ; // finish event
@@ -1035,6 +1037,7 @@ describe("72. lobBind2.js", function() {
1035
1037
1036
1038
lob . on ( "error" , function ( err ) {
1037
1039
should . not . exist ( err , "lob.on 'error' event." ) ;
1040
+ reject ( err ) ;
1038
1041
} ) ;
1039
1042
1040
1043
lob . on ( "finish" , async function ( ) {
@@ -1108,13 +1111,14 @@ describe("72. lobBind2.js", function() {
1108
1111
1109
1112
lob . on ( "error" , function ( err ) {
1110
1113
should . not . exist ( err , "lob.on 'error' event." ) ;
1114
+ reject ( err ) ;
1111
1115
} ) ;
1112
1116
1113
1117
lob . on ( "finish" , async function ( ) {
1114
1118
const sql = `update nodb_tab_nclob72 set content = :bindvar
1115
1119
where id = :id` ;
1116
1120
const result = await connection . execute ( sql ,
1117
- { id : seq , bindvar : lob } ) ;
1121
+ { id : seq , bindvar : lob } ) ;
1118
1122
should . strictEqual ( result . rowsAffected , 1 ) ;
1119
1123
await lob . close ( ) ;
1120
1124
await connection . commit ( ) ;
@@ -1159,14 +1163,15 @@ describe("72. lobBind2.js", function() {
1159
1163
1160
1164
lob . on ( "error" , function ( err ) {
1161
1165
should . not . exist ( err , "lob.on 'error' event." ) ;
1166
+ reject ( err ) ;
1162
1167
} ) ;
1163
1168
1164
1169
lob . on ( "finish" , async function ( ) {
1165
1170
const sql = `begin nodb_proc_nclob_inout1(:id, :io); end;` ;
1166
1171
const binds = {
1167
1172
id : seq ,
1168
1173
io : { type : oracledb . DB_TYPE_NCLOB ,
1169
- dir : oracledb . BIND_INOUT , val : lob }
1174
+ dir : oracledb . BIND_INOUT , val : lob }
1170
1175
} ;
1171
1176
const options = { autoCommit : true } ;
1172
1177
const result = await connection . execute ( sql , binds , options ) ;
@@ -1183,6 +1188,7 @@ describe("72. lobBind2.js", function() {
1183
1188
1184
1189
lobout . on ( "error" , function ( err ) {
1185
1190
should . not . exist ( err , "lob.on 'error' event." ) ;
1191
+ reject ( err ) ;
1186
1192
} ) ;
1187
1193
1188
1194
lobout . on ( "end" , async function ( ) {
0 commit comments