Skip to content

Commit 9e4f60a

Browse files
committed
Minor changes in unit tests
1 parent 03f38e7 commit 9e4f60a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/10-exceptions.t

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,55 +152,55 @@ sub t_not_allowed_after_multi {
152152
exception {
153153
$redis->subscribe('channel');
154154
},
155-
qr/Command "subscribe" not allowed after "multi" command\./,
155+
qr/Command "subscribe" not allowed after "multi" command/,
156156
"not allowed after multi; SUBSCRIBE",
157157
);
158158

159159
like(
160160
exception {
161161
$redis->unsubscribe('channel');
162162
},
163-
qr/Command "unsubscribe" not allowed after "multi" command\./,
163+
qr/Command "unsubscribe" not allowed after "multi" command/,
164164
"not allowed after multi; UNSUBSCRIBE",
165165
);
166166

167167
like(
168168
exception {
169169
$redis->psubscribe('pattern_*');
170170
},
171-
qr/Command "psubscribe" not allowed after "multi" command\./,
171+
qr/Command "psubscribe" not allowed after "multi" command/,
172172
"not allowed after multi; PSUBSCRIBE",
173173
);
174174

175175
like(
176176
exception {
177177
$redis->punsubscribe('pattern_*');
178178
},
179-
qr/Command "punsubscribe" not allowed after "multi" command\./,
179+
qr/Command "punsubscribe" not allowed after "multi" command/,
180180
"not allowed after multi; PUNSUBSCRIBE",
181181
);
182182

183183
like(
184184
exception {
185185
$redis->info;
186186
},
187-
qr/Command "info" not allowed after "multi" command\./,
187+
qr/Command "info" not allowed after "multi" command/,
188188
"not allowed after multi; INFO",
189189
);
190190

191191
like(
192192
exception {
193193
$redis->select(2);
194194
},
195-
qr/Command "select" not allowed after "multi" command\./,
195+
qr/Command "select" not allowed after "multi" command/,
196196
"not allowed after multi; SELECT",
197197
);
198198

199199
like(
200200
exception {
201201
$redis->quit;
202202
},
203-
qr/Command "quit" not allowed after "multi" command\./,
203+
qr/Command "quit" not allowed after "multi" command/,
204204
"not allowed after multi; QUIT",
205205
);
206206

0 commit comments

Comments
 (0)