Skip to content

Commit

Permalink
test: fix regex usage in some cases (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Apr 26, 2020
1 parent a5cb1be commit ca91387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/node/route-domain-with-local-dns.t
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ GET /t
--- response_body
passed
--- error_log eval
/.*parse_args(): dns resolver\[.+\]/
qr/.*parse_args\(\): dns resolver\[.+\]/
--- no_error_log
[error]
Expand All @@ -75,7 +75,7 @@ GET /not_found
--- response_body
{"error_msg":"failed to match any routes"}
--- error_log eval
/.*parse_args(): dns resolver\[.+\]/
qr/.*parse_args\(\): dns resolver\[.+\]/
--- no_error_log
[error]
Expand Down
2 changes: 1 addition & 1 deletion t/plugin/jwt-auth.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __DATA__
--- request
GET /t
--- response_body_like eval
qr/{"algorithm":"HS256","secret":"^[a-zA-Z0-9+/]+={0,2}$","exp":86400}/
qr/{"algorithm":"HS256","secret":"[a-zA-Z0-9+\\\/]+={0,2}","exp":86400}/
--- no_error_log
[error]

Expand Down

0 comments on commit ca91387

Please sign in to comment.