File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -881,8 +881,11 @@ tests.PUNSUB_EMPTY = function () {
881
881
} ;
882
882
883
883
tests . UNSUB_EMPTY_CB = function ( ) {
884
- // test situation where unsubscribe reply[1] is null
885
884
var name = "UNSUB_EMPTY_CB" ;
885
+ // test hangs on older versions of redis, so skip
886
+ if ( ! server_version_at_least ( client , [ 2 , 6 , 11 ] ) ) return next ( name ) ;
887
+
888
+ // test situation where unsubscribe reply[1] is null
886
889
client3 . unsubscribe ( ) ; // unsubscribe from all so can test null
887
890
client3 . unsubscribe ( function ( err , results ) {
888
891
// reply[1] will be null
@@ -892,8 +895,11 @@ tests.UNSUB_EMPTY_CB = function () {
892
895
} ;
893
896
894
897
tests . PUNSUB_EMPTY_CB = function ( ) {
895
- // test situation where punsubscribe reply[1] is null
896
898
var name = "PUNSUB_EMPTY_CB" ;
899
+ // test hangs on older versions of redis, so skip
900
+ if ( ! server_version_at_least ( client , [ 2 , 6 , 11 ] ) ) return next ( name ) ;
901
+
902
+ // test situation where punsubscribe reply[1] is null
897
903
client3 . punsubscribe ( ) ; // punsubscribe from all so can test null
898
904
client3 . punsubscribe ( function ( err , results ) {
899
905
// reply[1] will be null
You can’t perform that action at this time.
0 commit comments