Permalink
Browse files

Make tests pass under Redis 2.6

In 2.6.x, the INFO command takes an optional argument; so supply two
arguments to force an error.  In addition, Redis now yields a different
error message, so accept either one.

Tested against 2.6.0-rc5.
  • Loading branch information...
1 parent 83f2f67 commit 83136950633feda0b46b4377b85e7faee530f782 @arc arc committed Jun 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/04-pipeline.t
View
@@ -44,7 +44,8 @@ pipeline_ok 'keys in pipelined mode', (
pipeline_ok 'info in pipelined mode', (
[info => [], code(sub { ref $_[0] eq 'HASH' && keys %{ $_[0] } })],
- [info => ['oops'], undef, q[ERR wrong number of arguments for 'info' command]],
+ [info => [qw<oops oops>], undef,
+ re(qr/^ERR (?:syntax error|wrong number of arguments for 'info' command)$/)],
);
pipeline_ok 'pipeline with multi-bulk reply', (

0 comments on commit 8313695

Please sign in to comment.