Skip to content

Commit 5f6ea61

Browse files
committed
Enlarge test timeouts for event cases
1 parent 463fb46 commit 5f6ea61

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

test/dataTypeBlob.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ var inFileName = './test/fuzzydinosaur.jpg'; // contains the image to be insert
4848
var outFileName = './test/blobstreamout.jpg';
4949

5050
describe('41. dataTypeBlob', function() {
51-
if(dbConfig.externalAuth){
51+
52+
this.timeout(10000);
53+
if(dbConfig.externalAuth){
5254
var credential = { externalAuth: true, connectString: dbConfig.connectString };
5355
} else {
5456
var credential = dbConfig;
@@ -114,7 +116,7 @@ describe('41. dataTypeBlob', function() {
114116
setTimeout( function() {
115117
streamEndEventFired.should.equal(true, "inStream does not call 'end' event!")
116118
callback();
117-
}, 500);
119+
}, 2000);
118120

119121
connection.execute(
120122
"INSERT INTO oracledb_myblobs (num, content) VALUES (:n, EMPTY_BLOB()) RETURNING content INTO :lobbv",
@@ -153,7 +155,7 @@ describe('41. dataTypeBlob', function() {
153155
setTimeout( function() {
154156
streamFinishEventFired.should.equal(true, "stream does not call 'finish' Event!");
155157
callback();
156-
}, 500);
158+
}, 2000);
157159

158160
connection.execute(
159161
"SELECT content FROM oracledb_myblobs WHERE num = :n",
@@ -198,7 +200,7 @@ describe('41. dataTypeBlob', function() {
198200
lobDataEventFired.should.equal(true, "lob does not call 'data' event!");
199201
lobEndEventFired.should.equal(true, "lob does not call 'end' event!");
200202
callback();
201-
}, 500);
203+
}, 2000);
202204

203205
connection.execute(
204206
"SELECT content FROM oracledb_myblobs WHERE num = :n",

test/dataTypeClob.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ var inFileName = './test/clobexample.txt'; // the file with text to be inserted
4848
var outFileName = './test/clobstreamout.txt';
4949

5050
describe('40. dataTypeClob.js', function() {
51-
51+
52+
this.timeout(10000);
5253
if(dbConfig.externalAuth){
5354
var credential = { externalAuth: true, connectString: dbConfig.connectString };
5455
} else {
@@ -115,7 +116,7 @@ describe('40. dataTypeClob.js', function() {
115116
setTimeout( function() {
116117
streamEndEventFired.should.equal(true, "inStream does not call 'end' event!")
117118
callback();
118-
}, 500);
119+
}, 2000);
119120

120121
connection.execute(
121122
"INSERT INTO oracledb_myclobs (num, content) VALUES (:n, EMPTY_CLOB()) RETURNING content INTO :lobbv",
@@ -153,7 +154,7 @@ describe('40. dataTypeClob.js', function() {
153154
setTimeout( function() {
154155
streamFinishEventFired.should.equal(true, "stream does not call 'Finish' Event!");
155156
callback();
156-
}, 500);
157+
}, 2000);
157158

158159
connection.execute(
159160
"SELECT content FROM oracledb_myclobs WHERE num = :n",
@@ -199,7 +200,7 @@ describe('40. dataTypeClob.js', function() {
199200
lobDataEventFired.should.equal(true, "lob does not call 'data' event!");
200201
lobEndEventFired.should.equal(true, "lob does not call 'end' event!");
201202
callback();
202-
}, 500);
203+
}, 2000);
203204

204205
connection.execute(
205206
"SELECT content FROM oracledb_myclobs WHERE num = :n",
@@ -238,4 +239,4 @@ describe('40. dataTypeClob.js', function() {
238239
], done);
239240

240241
})
241-
})
242+
})

0 commit comments

Comments
 (0)