@@ -2,7 +2,7 @@ use 5.008000;
2
2
use strict;
3
3
use warnings;
4
4
5
- use Test::More tests => 15 ;
5
+ use Test::More tests => 20 ;
6
6
use Test::Fatal;
7
7
use AnyEvent::RipeRedis;
8
8
@@ -153,15 +153,55 @@ sub t_not_allowed_after_multi {
153
153
$redis -> subscribe(' channel' );
154
154
},
155
155
qr / Command "subscribe" not allowed after "multi" command\. / ,
156
- " t_not_allowed_after_multi; SUBSCRIBE" ,
156
+ " not allowed after multi; SUBSCRIBE" ,
157
+ );
158
+
159
+ like(
160
+ exception {
161
+ $redis -> unsubscribe(' channel' );
162
+ },
163
+ qr / Command "unsubscribe" not allowed after "multi" command\. / ,
164
+ " not allowed after multi; UNSUBSCRIBE" ,
165
+ );
166
+
167
+ like(
168
+ exception {
169
+ $redis -> psubscribe(' pattern_*' );
170
+ },
171
+ qr / Command "psubscribe" not allowed after "multi" command\. / ,
172
+ " not allowed after multi; PSUBSCRIBE" ,
173
+ );
174
+
175
+ like(
176
+ exception {
177
+ $redis -> punsubscribe(' pattern_*' );
178
+ },
179
+ qr / Command "punsubscribe" not allowed after "multi" command\. / ,
180
+ " not allowed after multi; PUNSUBSCRIBE" ,
181
+ );
182
+
183
+ like(
184
+ exception {
185
+ $redis -> info;
186
+ },
187
+ qr / Command "info" not allowed after "multi" command\. / ,
188
+ " not allowed after multi; INFO" ,
157
189
);
158
190
159
191
like(
160
192
exception {
161
193
$redis -> select(2);
162
194
},
163
195
qr / Command "select" not allowed after "multi" command\. / ,
164
- " t_not_allowed_after_multi; SELECT" ,
196
+ " not allowed after multi; SELECT" ,
197
+ );
198
+
199
+ like(
200
+ exception {
201
+ $redis -> quit;
202
+ },
203
+ qr / Command "quit" not allowed after "multi" command\. / ,
204
+ " not allowed after multi; QUIT" ,
165
205
);
166
206
167
207
$redis -> disconnect;
0 commit comments