Skip to content

Commit a0a77d8

Browse files
committed
add more streams tests
1 parent d18627e commit a0a77d8

File tree

3 files changed

+373
-6
lines changed

3 files changed

+373
-6
lines changed

test/list.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,24 @@
241241
13.1.11 stream results with bulk size set
242242
13.1.12 stream stress test
243243

244+
<<<<<<< HEAD
245+
14. stream2.js
246+
14.1 Bind by position and return an array
247+
14.2 Bind by name and return an array
248+
14.3 Bind by position and return an object
249+
14.4 Bind by name and return an object
250+
14.5 explicitly set resultSet option to be false
251+
14.6 maxRows option is ignored as expect
252+
14.7 Negative - queryStream() has no parameters
253+
14.8 Negative - give invalid SQL as first parameter
254+
14.9 Negatvie - give non-query SQL
255+
- 14.10 Negative - set streamNumRows to be 0
256+
- 14.11 Negative - set streamNumRows to be NaN
257+
14.12 Negative - set streamNumRows to be a negative number
258+
14.13 Negative - set streamNumRows to be a string
259+
260+
=======
261+
>>>>>>> 80041ca9e2b44dc2a3f70e5deb6d8b9da8eaf134
244262
21. datatypeAssist.js
245263

246264
22. dataTypeChar.js

test/stream.js renamed to test/stream1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. */
1+
/* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. */
22

33
/******************************************************************************
44
*
@@ -19,7 +19,7 @@
1919
* See LICENSE.md for relevant licenses.
2020
*
2121
* NAME
22-
* 13. stream.js
22+
* 13. stream1.js
2323
*
2424
* DESCRIPTION
2525
* Testing driver query results via stream feature.
@@ -31,13 +31,14 @@
3131
* 51 onwards are for other tests
3232
*
3333
*****************************************************************************/
34+
'use strict';
3435

3536
var oracledb = require('oracledb');
36-
var should = require('should');
37-
var async = require('async');
37+
var should = require('should');
38+
var async = require('async');
3839
var dbConfig = require('./dbconfig.js');
3940

40-
describe('13. stream.js', function () {
41+
describe('13. stream1.js', function () {
4142
var connection = false;
4243

4344
if (dbConfig.externalAuth) {
@@ -178,7 +179,6 @@ describe('13. stream.js', function () {
178179

179180
stream.on('error', function (error) {
180181
should.exist(error);
181-
182182
setTimeout(done, 500);
183183
});
184184

0 commit comments

Comments
 (0)