You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/06/11 00:45:41 UTC
[apisix] branch master updated: test: make
t/plugin/ext-plugin/sanity.t stable (#4407)
This is an automated email from the ASF dual-hosted git repository.
tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 2feb48f test: make t/plugin/ext-plugin/sanity.t stable (#4407)
2feb48f is described below
commit 2feb48f4a0ac125a16d773aff135fc62946c071f
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Jun 11 08:45:31 2021 +0800
test: make t/plugin/ext-plugin/sanity.t stable (#4407)
Signed-off-by: spacewander <sp...@gmail.com>
---
t/plugin/ext-plugin/sanity.t | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/t/plugin/ext-plugin/sanity.t b/t/plugin/ext-plugin/sanity.t
index aacb7b3..1a3a233 100644
--- a/t/plugin/ext-plugin/sanity.t
+++ b/t/plugin/ext-plugin/sanity.t
@@ -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