Skip to content

Commit 1a5f55c

Browse files
committed
Unit tests improved. Prepared to release
1 parent 274ef88 commit 1a5f55c

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

Changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Revision history for AnyEvent::RipeRedis.
22

3+
0.22 Tue Aug 30 19:51:25 MSK 2016
4+
- Unit tests improved.
5+
6+
0.20 Tue Aug 30 19:20:30 MSK 2016
7+
- Minor changes in POD.
8+
- Cosmetic changes in tests.
9+
310
0.18 Tue Aug 30 11:03:25 MSK 2016
411
- Added link to AnyEvent::RipeRedis::Cluster in POD.
512

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AnyEvent-RipeRedis version 0.20
1+
AnyEvent-RipeRedis version 0.22
22
======================
33

44
INSTALLATION

lib/AnyEvent/RipeRedis.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use base qw( Exporter );
77

8-
our $VERSION = '0.20';
8+
our $VERSION = '0.22';
99

1010
use AnyEvent::RipeRedis::Error;
1111

lib/AnyEvent/RipeRedis/Error.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use 5.008000;
44
use strict;
55
use warnings;
66

7-
our $VERSION = '0.20';
7+
our $VERSION = '0.22';
88

99
our %ERROR_CODES = (
1010
E_CANT_CONN => 1,

t/04-commands.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ t_multiword_command($redis);
6060
t_error_reply($redis);
6161
t_default_on_error($redis);
6262
t_error_after_exec($redis);
63-
t_discard($redis);
63+
t_discard_method($redis);
6464
t_execute_method($redis);
6565
t_quit($redis);
6666

@@ -692,7 +692,7 @@ sub t_error_after_exec {
692692
return;
693693
}
694694

695-
sub t_discard {
695+
sub t_discard_method {
696696
my $redis = shift;
697697

698698
my $t_reply;
@@ -732,7 +732,7 @@ sub t_discard {
732732
}
733733
);
734734

735-
is( $t_reply, 'OK', 'DISCARD' );
735+
is( $t_reply, 'OK', 'discard method' );
736736

737737
return;
738738
}

t/09-conn-errors.t

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ t_cant_connect();
1212
t_no_connection();
1313
t_reconnection();
1414
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();
1917
t_subscription_lost();
2018

2119

@@ -295,7 +293,7 @@ sub t_read_timeout {
295293
return;
296294
}
297295

298-
sub t_premature_conn_close_mth1 {
296+
sub t_premature_disconnect {
299297
my $t_cli_err;
300298
my $t_cmd_err;
301299

@@ -314,7 +312,7 @@ sub t_premature_conn_close_mth1 {
314312

315313
$redis->disconnect;
316314

317-
my $t_npref = 'premature connection close; disconnect() used';
315+
my $t_npref = 'premature disconnect';
318316
isa_ok( $t_cli_err, 'AnyEvent::RipeRedis::Error' );
319317
is( $t_cli_err->message, 'Connection closed by client prematurely.',
320318
"$t_npref; client error message" );
@@ -328,7 +326,7 @@ sub t_premature_conn_close_mth1 {
328326
return;
329327
}
330328

331-
sub t_premature_conn_close_mth2 {
329+
sub t_premature_destroy {
332330
my $on_error_was_called = 0;
333331
my $t_cmd_err_msg;
334332

@@ -352,7 +350,7 @@ sub t_premature_conn_close_mth2 {
352350

353351
undef $redis;
354352

355-
my $t_npref = 'premature connection close; undef() used';
353+
my $t_npref = 'premature destroy';
356354
ok( !$on_error_was_called, "$t_npref; 'on_error' callback ignored" );
357355
is( $t_cmd_err_msg,
358356
q{Operation "ping" aborted: Client object destroyed prematurely.},

0 commit comments

Comments
 (0)