mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 20:17:35 +08:00
test: make t/plugin/ext-plugin/sanity.t stable (#4407)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
parent
4106ef5b58
commit
2feb48f4a0
12
t/plugin/ext-plugin/sanity.t
vendored
12
t/plugin/ext-plugin/sanity.t
vendored
@ -186,7 +186,11 @@ failed to connect to the unix socket
|
||||
["t/plugin/ext-plugin/runner.sh", "3600"]
|
||||
--- config
|
||||
location /t {
|
||||
return 200;
|
||||
access_by_lua_block {
|
||||
-- ensure the runner is spawned before the request finishes
|
||||
ngx.sleep(0.1)
|
||||
ngx.exit(200)
|
||||
}
|
||||
}
|
||||
--- grep_error_log eval
|
||||
qr/LISTEN unix:\S+/
|
||||
@ -378,7 +382,11 @@ env MY_ENV_VAR=foo;
|
||||
["t/plugin/ext-plugin/runner.sh", "3600"]
|
||||
--- config
|
||||
location /t {
|
||||
return 200;
|
||||
access_by_lua_block {
|
||||
-- ensure the runner is spawned before the request finishes
|
||||
ngx.sleep(0.1)
|
||||
ngx.exit(200)
|
||||
}
|
||||
}
|
||||
--- error_log
|
||||
MY_ENV_VAR foo
|
||||
|
Loading…
Reference in New Issue
Block a user