-
Notifications
You must be signed in to change notification settings - Fork 2.1k
do not cache logger when running unit tests #28313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@aneumann IMHO this PR doesn't look like the best approach to solve the tests problem... No idea how to fix them, but I guess adding code related to tests in server.php is not a good idea. |
|
I don't have any better idea. @individual-it can you add a PHP comment to explain why this change is needed ? |
8d9a287 to
2b36e07
Compare
|
@PVince81 does this comment make it understandable what happens? |
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
lib/private/Server.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
except then? or except when
2b36e07 to
2b59091
Compare
|
@PVince81 @DeepDiver1975 @individual-it |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Description
when running unit tests the logger should not be cached to make it possible to mock it
Related Issue
file firewall unit tests were failing after #28215
Screenshots (if appropriate):
travis run on firewall tests before fix

Types of changes
Checklist: