Skip to content

Commit 85fb9b8

Browse files
test: make the 030-uri-args.t more robust since there is no fixed order in lua table. (openresty#1797)
1 parent 4d2a04a commit 85fb9b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/030-uri-args.t

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,8 @@ err: API disabled in the context of set_by_lua*
690690
}
691691
--- request
692692
GET /lua
693-
--- response_body
694-
a=bar&b=foo
693+
--- response_body eval
694+
qr/a=bar&b=foo|b=foo&a=bar/
695695

696696

697697

@@ -1105,8 +1105,8 @@ CORE::join("", @k);
11051105
}
11061106
--- request
11071107
GET /foo?world
1108-
--- response_body
1109-
HTTP/1.0 a=3&b=5&b=6
1108+
--- response_body eval
1109+
qr/HTTP\/1.0 (a=3&b=5&b=6|b=5&b=6&a=3|b=6&b=5&a=3)/
11101110

11111111

11121112

@@ -1552,8 +1552,8 @@ GET /lua
15521552
}
15531553
--- request
15541554
GET /lua
1555-
--- response_body
1556-
args: foo=%2C%24%40%7C%60&bar=-_.!~*'()
1555+
--- response_body eval
1556+
qr/(\Qargs: foo=%2C%24%40%7C%60&bar=-_.!~*'()\E)|(\Qargs: bar=-_.!~*'()&foo=%2C%24%40%7C%60\E)/
15571557
--- no_error_log
15581558
[error]
15591559

0 commit comments

Comments
 (0)