-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
ActionManagerTests CrashTest refinment. #2156
ActionManagerTests CrashTest refinment. #2156
Conversation
At the time a crash test is written, that specific code would have resulted in a crash, and the source of that crash would have been fixed. As strange as crash test code may be, it should not be modified, at least not without careful consideration, because you may be changing the logic that initially caused the crash. Updating things like In this case, I feel that the majority of the modifications you have made to |
Is there a reason for a rewrite it's better you let the "old" test as it is and write a "next". |
Hi!
Does this make sense? If yes, I will do changes in the same PR. Actually I will just reset all my commits and do new ones, then will force push new changes. |
I also think that this PR should be closed, as it doesn't address any issues. But it's awesome that you want to contribute, so I'll just leave a bunch of hopefully helpful random thoughts and tips, that may help you guide your efforts:
If you're eager to contribute something to the project, then you could try checking already known issues, or maybe search the project for TODO/FIXME comments, or you could create a discussion thread and people could point you to some stuff. |
There seems to be some misunderstanding. A crash test case is written to test for a specific bug that would cause a crash, in order to test the resulting fix. So, writing a test "to check if AXMOL does not crash if we remove Node while ActionInterval(s) of this Node are being executed." has no purpose, because there is no bug, unless there is one that has not yet been submitted by you? |
Hm... okey. I will close PR of course. I just made some investigations out of curiosity and found out that logic of CrashTest actually already was changed many years ago. And probably by mistake? Check PR of original Cocos2d-x repo:cocos2d/cocos2d-x#11272 @smilediver Tnx, I will try to follow your hints. |
Describe your changes
Please check explanation here: #2155
Issue ticket number and link
Checklist before requesting a review
For each PR
Add Copyright if it missed:
-
"Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."
I have performed a self-review of my code.
Optional:
For core/new feature PR