@@ -287,63 +287,4 @@ describe('14. stream2.js', function() {
287287 } ) ;
288288 } )
289289
290- it . skip ( '14.10 Negative - set streamNumRows to be 0' , function ( done ) {
291- var sql = 'SELECT employees_name FROM nodb_employees WHERE employees_id = :1' ;
292- var stream = connection . queryStream ( sql , [ 40 ] , { streamNumRows : 0 } ) ;
293-
294- stream . on ( 'error' , function ( error ) {
295- should . exist ( error ) ;
296- setTimeout ( done , 500 ) ;
297- } ) ;
298-
299- stream . on ( 'data' , function ( data ) {
300- should . not . exist ( data ) ;
301- } ) ;
302- } )
303-
304- it . skip ( '14.11 Negative - set streamNumRows to be NaN' , function ( done ) {
305- var sql = 'SELECT employees_name FROM nodb_employees WHERE employees_id = :1' ;
306- var stream = connection . queryStream ( sql , [ 40 ] , { streamNumRows : NaN } ) ;
307-
308- stream . on ( 'error' , function ( error ) {
309- should . exist ( error ) ;
310- setTimeout ( done , 500 ) ;
311- } ) ;
312-
313- stream . on ( 'data' , function ( data ) {
314- should . not . exist ( data ) ;
315- } ) ;
316- } )
317-
318- it ( '14.12 Negative - set streamNumRows to be a negative number' , function ( done ) {
319- var sql = 'SELECT employees_name FROM nodb_employees WHERE employees_id = :1' ;
320- var stream = connection . queryStream ( sql , [ 40 ] , { streamNumRows : - 9 } ) ;
321-
322- stream . on ( 'error' , function ( error ) {
323- should . exist ( error ) ;
324- ( error . message ) . should . startWith ( 'NJS-006' ) ;
325- // NJS-006: invalid type for parameter 1
326- setTimeout ( done , 500 ) ;
327- } ) ;
328-
329- stream . on ( 'data' , function ( data ) {
330- should . not . exist ( data ) ;
331- } ) ;
332- } )
333-
334- it ( '14.13 Negative - set streamNumRows to be a string' , function ( done ) {
335- var sql = 'SELECT employees_name FROM nodb_employees WHERE employees_id = :1' ;
336- var stream = connection . queryStream ( sql , [ 40 ] , { streamNumRows : 'foobar' } ) ;
337-
338- stream . on ( 'error' , function ( error ) {
339- should . exist ( error ) ;
340- ( error . message ) . should . startWith ( 'NJS-006' ) ;
341- // NJS-006: invalid type for parameter 1
342- setTimeout ( done , 500 ) ;
343- } ) ;
344-
345- stream . on ( 'data' , function ( data ) {
346- should . not . exist ( data ) ;
347- } ) ;
348- } )
349290} )
0 commit comments