@@ -12,10 +12,8 @@ t_cant_connect();
12
12
t_no_connection();
13
13
t_reconnection();
14
14
t_read_timeout();
15
-
16
- t_premature_conn_close_mth1();
17
- t_premature_conn_close_mth2();
18
-
15
+ t_premature_disconnect();
16
+ t_premature_destroy();
19
17
t_subscription_lost();
20
18
21
19
@@ -295,7 +293,7 @@ sub t_read_timeout {
295
293
return ;
296
294
}
297
295
298
- sub t_premature_conn_close_mth1 {
296
+ sub t_premature_disconnect {
299
297
my $t_cli_err ;
300
298
my $t_cmd_err ;
301
299
@@ -314,7 +312,7 @@ sub t_premature_conn_close_mth1 {
314
312
315
313
$redis -> disconnect;
316
314
317
- my $t_npref = ' premature connection close; disconnect() used ' ;
315
+ my $t_npref = ' premature disconnect' ;
318
316
isa_ok( $t_cli_err , ' AnyEvent::RipeRedis::Error' );
319
317
is( $t_cli_err -> message, ' Connection closed by client prematurely.' ,
320
318
" $t_npref ; client error message" );
@@ -328,7 +326,7 @@ sub t_premature_conn_close_mth1 {
328
326
return ;
329
327
}
330
328
331
- sub t_premature_conn_close_mth2 {
329
+ sub t_premature_destroy {
332
330
my $on_error_was_called = 0;
333
331
my $t_cmd_err_msg ;
334
332
@@ -352,7 +350,7 @@ sub t_premature_conn_close_mth2 {
352
350
353
351
undef $redis ;
354
352
355
- my $t_npref = ' premature connection close; undef() used ' ;
353
+ my $t_npref = ' premature destroy ' ;
356
354
ok( !$on_error_was_called , " $t_npref ; 'on_error' callback ignored" );
357
355
is( $t_cmd_err_msg ,
358
356
q{ Operation "ping" aborted: Client object destroyed prematurely.} ,
0 commit comments