File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -359,30 +359,6 @@ describe("The node_redis client", function () {
359359
360360 } ) ;
361361
362- // This seems to be a broken test. The exception should be handled by the user, not by node_redis
363- it . skip ( 'emits errors thrown from within an on("message") handler' , function ( done ) {
364- var client2 = redis . createClient . apply ( redis . createClient , args ) ;
365- var name = 'channel' ;
366-
367- client2 . subscribe ( name , function ( ) {
368- client . publish ( name , "some message" ) ;
369- } ) ;
370-
371- client2 . on ( "message" , function ( channel , data ) {
372- if ( channel === name ) {
373- assert . equal ( data , "some message" ) ;
374- throw Error ( 'forced exception' ) ;
375- }
376- return done ( ) ;
377- } ) ;
378-
379- client2 . once ( "error" , function ( err ) {
380- client2 . end ( ) ;
381- assert . equal ( err . message , 'forced exception' ) ;
382- return done ( ) ;
383- } ) ;
384- } ) ;
385-
386362 describe ( 'idle' , function ( ) {
387363 it ( 'emits idle as soon as there are no outstanding commands' , function ( done ) {
388364 client . on ( 'idle' , function onIdle ( ) {
You can’t perform that action at this time.
0 commit comments