Skip to content

Commit b41bb3a

Browse files
committed
Correct order of operations
1 parent 0cfabbc commit b41bb3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lobResultSet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('59. lobResultSet.js', function() {
121121

122122
inStream.pipe(lob);
123123

124-
inStream.on('end', function() {
124+
lob.on('close', function() {
125125
connection.commit( function(err) {
126126
should.not.exist(err);
127127
cb(); // insertion done
@@ -345,7 +345,7 @@ describe('59. lobResultSet.js', function() {
345345

346346
inStream.pipe(lob);
347347

348-
inStream.on('end', function() {
348+
lob.on('close', function() {
349349
connection.commit( function(err) {
350350
should.not.exist(err);
351351
cb(); // insertion done

0 commit comments

Comments
 (0)