This is an automated email from the ASF dual-hosted git repository.

spacewander 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 6063f3340 test: make sure the nginx.pid is written (#7122)
6063f3340 is described below

commit 6063f334098a93e10d603c156ea7d9a217e95f62
Author: 罗泽轩 <[email protected]>
AuthorDate: Wed May 25 17:55:39 2022 +0800

    test: make sure the nginx.pid is written (#7122)
---
 t/cli/test_main.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/cli/test_main.sh b/t/cli/test_main.sh
index 128e9426f..73202a8f3 100755
--- a/t/cli/test_main.sh
+++ b/t/cli/test_main.sh
@@ -699,12 +699,12 @@ echo "-1" > logs/nginx.pid
 out=$(./bin/apisix start 2>&1 || true)
 if echo "$out" | grep "APISIX is running"; then
     rm logs/nginx.pid
-    echo "failed: should ignore stale nginx.pid"
+    echo "failed: should reject bad nginx.pid"
     exit 1
 fi
 
 ./bin/apisix stop
-echo "pass: ignore stale nginx.pid"
+sleep 0.5
 
 # check no corresponding process
 make run

Reply via email to