From 564e4976f2851e0301e5db5c4d59944eb5ea65e1 Mon Sep 17 00:00:00 2001 From: perlpong Date: Tue, 7 May 2013 23:43:23 +0000 Subject: [PATCH] fix tests --- t/07-reconnect.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/07-reconnect.t b/t/07-reconnect.t index 950b1cb..dff1dc9 100755 --- a/t/07-reconnect.t +++ b/t/07-reconnect.t @@ -67,13 +67,13 @@ subtest 'KEYS commands with extra logic triggers reconnect' => sub { }; -subtest "Bad commnands don't trigger reconnect" => sub { +subtest "Bad commands don't trigger reconnect" => sub { ok(my $r = Redis->new(reconnect => 2, server => $srv), 'connected to our test redis-server'); my $prev_sock = "$r->{sock}"; like( exception { $r->set(bad => reconnect => 1) }, - qr{ERR wrong number of arguments for 'set' command}, + qr{ERR wrong number of arguments for 'set' command|\[set\] ERR syntax error}, 'Bad commands still die', ); is("$r->{sock}", $prev_sock, "... and don't trigger a reconnect");