Skip to content

Commit 319e73d

Browse files
committed
Fix a test potential async issue
1 parent 2babbab commit 319e73d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/lobClose.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('54. lobClose.js', function() {
8181

8282
}); // 54.1
8383

84-
it.skip('54.2 can not call close() multiple times', function(done) {
84+
it('54.2 can not call close() multiple times', function(done) {
8585

8686
conn.createLob(
8787
oracledb.CLOB,
@@ -92,7 +92,7 @@ describe('54. lobClose.js', function() {
9292
should.not.exist(err);
9393

9494
lob.close(function(err) {
95-
should.exist(err);
95+
should.not.exist(err);
9696
done();
9797
});
9898
}); // first close();
@@ -180,10 +180,6 @@ describe('54. lobClose.js', function() {
180180
);
181181
cb();
182182
});
183-
184-
lob2.on('finish', function() {
185-
cb(new Error("LOB emits 'finish' event!"));
186-
});
187183
},
188184
function(cb) {
189185
(lob2.chunkSize).should.be.a.Number();

0 commit comments

Comments
 (0)