Skip to content

Commit 7f09dde

Browse files
committed
fixed a test case that could fail due to machine differences.
1 parent b96d343 commit 7f09dde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

t/pubsub.t

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,15 @@ GET /t
282282
}
283283
--- request
284284
GET /t
285-
--- response_body
286-
1: subscribe dog: ["subscribe","dog",1]
287-
1: subscribe cat: ["subscribe","cat",2]
285+
--- response_body_like chop
286+
^1: subscribe dog: \["subscribe","dog",1\]
287+
1: subscribe cat: \["subscribe","cat",2\]
288288
2: publish: 1
289-
1: receive: ["message","dog","Hello"]
289+
1: receive: \["message","dog","Hello"\]
290290
1: failed to read reply: timeout
291-
1: unsubscribe: ["unsubscribe","cat",1]
292-
1: receive: ["unsubscribe","dog",0]
293-
1: failed to read reply: not subscribed
291+
1: unsubscribe: \["unsubscribe","(?:cat|dog)",1\]
292+
1: receive: \["unsubscribe","(?:dog|cat)",0\]
293+
1: failed to read reply: not subscribed$
294294

295295
--- no_error_log
296296
[error]

0 commit comments

Comments
 (0)