test: make t/plugin/ext-plugin/sanity.t stable (#4407)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2021-06-11 08:45:31 +08:00 committed by GitHub
parent 4106ef5b58
commit 2feb48f4a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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