@@ -92,6 +92,14 @@ describe('redis-commands', function () {
9292 expect ( index ( 'migrate' , [ '127.0.0.1' , 6379 , 'foo' , 0 , 0 , 'COPY' ] ) ) . to . eql ( [ 2 ] )
9393 expect ( index ( 'migrate' , [ '127.0.0.1' , 6379 , '' , 0 , 0 , 'REPLACE' , 'KEYS' , 'foo' , 'bar' ] ) ) . to . eql ( [ 7 , 8 ] )
9494 expect ( index ( 'migrate' , [ '127.0.0.1' , 6379 , '' , 0 , 0 , 'KEYS' , 'foo' , 'bar' ] ) ) . to . eql ( [ 6 , 7 ] )
95+ expect ( index ( 'xreadgroup' , [ 'GROUP' , 'group' , 'consumer' , 'COUNT' , 10 , 'BLOCK' , 2000 , 'NOACK' , 'STREAMS' , 'key1' , 'key2' , 'id1' , 'id2' ] ) ) . to . eql ( [ 9 , 10 ] )
96+ expect ( index ( 'xreadgroup' , [ 'GROUP' , 'group' , 'consumer' , 'STREAMS' , 'key1' , 'id1' ] ) ) . to . eql ( [ 4 ] )
97+ expect ( index ( 'xreadgroup' , [ 'GROUP' , 'group' , 'consumer' , 'STREAMS' , 'key1' , 'key2' , 'id1' , 'id2' ] ) ) . to . eql ( [ 4 , 5 ] )
98+ expect ( index ( 'xreadgroup' , [ 'GROUP' , 'group' , 'consumer' , 'STREAMS' , 'key1' , 'key2' , 'key3' , 'id1' , 'id2' , 'id3' ] ) ) . to . eql ( [ 4 , 5 , 6 ] )
99+ expect ( index ( 'xread' , [ 'COUNT' , 10 , 'BLOCK' , 2000 , 'STREAMS' , 'key1' , 'key2' , 'id1' , 'id2' ] ) ) . to . eql ( [ 5 , 6 ] )
100+ expect ( index ( 'xread' , [ 'STREAMS' , 'key1' , 'id1' ] ) ) . to . eql ( [ 1 ] )
101+ expect ( index ( 'xread' , [ 'STREAMS' , 'key1' , 'key2' , 'id1' , 'id2' ] ) ) . to . eql ( [ 1 , 2 ] )
102+ expect ( index ( 'xread' , [ 'STREAMS' , 'key1' , 'key2' , 'key3' , 'id1' , 'id2' , 'id3' ] ) ) . to . eql ( [ 1 , 2 , 3 ] )
95103 } )
96104
97105 it ( 'should support numeric argument' , function ( ) {
0 commit comments