You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/30 02:00:40 UTC
[GitHub] [apisix] spacewander opened a new pull request #3943: test: make plugin/log-rotate.t stable
spacewander opened a new pull request #3943:
URL: https://github.com/apache/apisix/pull/3943
Signed-off-by: spacewander <sp...@gmail.com>
### What this PR does / why we need it:
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
### Pre-submission checklist:
* [x] Did you explain what problem does this PR solve? Or what new features have been added?
* [x] Have you added corresponding test cases?
* [ ] Have you modified the corresponding document?
* [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on a change in pull request #3943: test: make plugin/log-rotate.t stable
Posted by GitBox <gi...@apache.org>.
spacewander commented on a change in pull request #3943:
URL: https://github.com/apache/apisix/pull/3943#discussion_r603758443
##########
File path: t/plugin/log-rotate.t
##########
@@ -90,8 +90,8 @@ __DATA__
--- config
location /t {
content_by_lua_block {
- ngx.log(ngx.WARN, "start xxxxxx")
ngx.sleep(0.1)
+ ngx.log(ngx.WARN, "start xxxxxx")
Review comment:
It's obvious. We should ensure the log not be rotated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander merged pull request #3943: test: make plugin/log-rotate.t stable
Posted by GitBox <gi...@apache.org>.
spacewander merged pull request #3943:
URL: https://github.com/apache/apisix/pull/3943
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on a change in pull request #3943: test: make plugin/log-rotate.t stable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on a change in pull request #3943:
URL: https://github.com/apache/apisix/pull/3943#discussion_r603784591
##########
File path: t/plugin/log-rotate.t
##########
@@ -90,8 +90,8 @@ __DATA__
--- config
location /t {
content_by_lua_block {
- ngx.log(ngx.WARN, "start xxxxxx")
ngx.sleep(0.1)
+ ngx.log(ngx.WARN, "start xxxxxx")
Review comment:
Got it, thanks for the answer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] Firstsawyou commented on a change in pull request #3943: test: make plugin/log-rotate.t stable
Posted by GitBox <gi...@apache.org>.
Firstsawyou commented on a change in pull request #3943:
URL: https://github.com/apache/apisix/pull/3943#discussion_r603752965
##########
File path: t/plugin/log-rotate.t
##########
@@ -90,8 +90,8 @@ __DATA__
--- config
location /t {
content_by_lua_block {
- ngx.log(ngx.WARN, "start xxxxxx")
ngx.sleep(0.1)
+ ngx.log(ngx.WARN, "start xxxxxx")
Review comment:
Why does the execution order of ngx.sleep and ngx.log affect the stability of the test?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org