Skip to content

Commit f8b9c6d

Browse files
committed
Bump test timeout and enable more stream metadata event tests
1 parent f28add8 commit f8b9c6d

File tree

7 files changed

+415
-56
lines changed

7 files changed

+415
-56
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"async": "^1.5.0"
4242
},
4343
"scripts": {
44-
"test": "mocha -R spec --timeout 10000 test/*.js",
44+
"test": "mocha -R spec --timeout 100000 test/*.js",
4545
"testWindows": "mocha -R spec --timeout 0 test\\*.js"
4646
},
4747
"engines": {

test/columnMetadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ describe('9. columnMetadata.js', function(){
470470

471471
it('9.5.1 works when using duplicate column alias', function(done) {
472472
connection.execute(
473-
"SELECT 1 a, 'abc' a from dual",
473+
"SELECT 1 a, 'abc' a FROM dual",
474474
function(err, result) {
475475
should.not.exist(err);
476476
result.metaData[0].name.should.eql('A');

test/dataTypeBlob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var inFileName = './test/fuzzydinosaur.jpg'; // contains the image to be insert
4949
var outFileName = './test/blobstreamout.jpg';
5050

5151
describe('41. dataTypeBlob', function() {
52-
this.timeout(10000);
52+
this.timeout(20000);
5353

5454
var connection = null;
5555
var tableName = "nodb_myblobs";

test/dataTypeClob.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ var inFileName = './test/clobexample.txt'; // the file with text to be inserted
5050
var outFileName = './test/clobstreamout.txt';
5151

5252
describe('40. dataTypeClob.js', function() {
53-
54-
this.timeout(15000);
53+
this.timeout(10000);
5554

5655
var connection = null;
5756
var tableName = "nodb_myclobs";

test/list.txt

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,24 @@ Overview of node-oracledb functional tests
267267
13.3.2 should default to 100 if oracledb.maxRows is false
268268

269269
14. stream2.js
270-
14.1 meta data event
271-
14.2 Bind by position and return an array
272-
14.3 Bind by name and return an array
273-
14.4 Bind by position and return an object
274-
14.5 Bind by name and return an object
275-
14.6 explicitly setting resultSet option to be false takes no effect
276-
14.7 maxRows option is ignored as expect
277-
14.8 Negative - queryStream() has no parameters
278-
14.9 Negative - give invalid SQL as first parameter
279-
14.10 Negatvie - give non-query SQL
270+
14.1 Bind by position and return an array
271+
14.2 Bind by name and return an array
272+
14.3 Bind by position and return an object
273+
14.4 Bind by name and return an object
274+
14.5 explicitly setting resultSet option to be false takes no effect
275+
14.6 maxRows option is ignored as expect
276+
14.7 Negative - queryStream() has no parameters
277+
14.8 Negative - give invalid SQL as first parameter
278+
14.9 Negatvie - give non-query SQL
279+
14.10 metadata event - single column
280+
14.11 metadata event - multiple columns
281+
14.12 metadata event - all column names occurring
282+
14.13 metadata event - no return rows
283+
14.14 metadata event - negative: non-query SQL
284+
14.15 metadata event - case sensitive columns
285+
14.16 metadata event - large number of columns
286+
14.17 metadata event - single character column
287+
14.18 metadata event - duplicate column alias
280288

281289
15. resultsetToQueryStream.js
282290
15.1 Testing ResultSet.toQueryStream

test/stream1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var async = require('async');
3939
var dbConfig = require('./dbconfig.js');
4040

4141
describe('13. stream1.js', function () {
42+
this.timeout(10000);
4243

4344
var connection = null;
4445
var rowsAmount = 217;

0 commit comments

Comments
 (0)