Skip to content

Commit c912adc

Browse files
committed
Minor changes in tests
1 parent b0a2217 commit c912adc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

t/09-conn-errors.t

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,11 @@ sub t_read_timeout {
262262
my $cv = shift;
263263

264264
$redis = AnyEvent::RipeRedis->new(
265-
host => $server_info->{host},
266-
port => $server_info->{port},
267-
reconnect => 0,
268-
read_timeout => 1,
265+
host => $server_info->{host},
266+
port => $server_info->{port},
267+
reconnect => 0,
268+
connection_timeout => 6,
269+
read_timeout => 1,
269270

270271
on_error => sub {
271272
$t_cli_err = shift;

t/test_helper.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sub ev_loop {
3838

3939
$sub->($cv);
4040

41-
my $timer = AE::timer( 10, 0,
41+
my $timer = AE::timer( 15, 0,
4242
sub {
4343
diag( 'Emergency exit from event loop.' );
4444
$cv->send;

0 commit comments

Comments
 (0)