-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[CR] Camp calorie test #68127
[CR] Camp calorie test #68127
Conversation
I cannot get the character to craft, and I do not know why. I haven't pushed these commits but I've tried: Any help would be appreciated. |
I don't know anything about the testing stuff, so it might not be any help... Edit: Replaced what was below with something that might be less incorrect. My interpretation of the code is that it starts crafting and verified the in process craft is wielded. It then just advances the time, but doesn't make any call that would actually cause the crafting to finalize. |
It actually did try to start the craft, it just repeatedly refused to acknowledge that the character had components on hand. It was very bizarre. Regardless, I have abandoned the "actually craft it" approach in favor of just inserting the components into the item via code. |
Aaaand it's not playing well on CI. Worked fine on my machine! This is going to be an annoying one, isn't it? |
I assumed that the failure to place items into edit: ok yes, it does error out on my machine when I run the full test suite. So, most likely an ordering issue. Drat |
With #68154 figured out, it's a conflict with the |
Looks like it specifically places the player out of bounds during that test, yeah. I am open to suggestions on how to resolve this that isn't "Just run the faction camp test first". |
If that's what's happening, that test should probably place the player back in bounds (do this), or this test should place the player inbounds first (leaving that test to potentially break other tests). |
That does sound like a fine solution when I think about it hah. I'll poke it sometime today. |
Ok so this runs and works locally, both as an individual test, running just those two tests together, and running the whole suite (sans the expected translation failures). But I would appreciate a second look so it doesn't look like I'm doing something really nuts. |
Co-authored-by: ehughsbaird <44244083+ehughsbaird@users.noreply.github.com>
OK, so now it consistently passes on windows and consistently fails on... whatever the |
c5523af
to
dce5602
Compare
9176380
to
4aaabeb
Compare
* Camp calorie test * Pare it down and just access the item's components directly --------- Co-authored-by: ehughsbaird <44244083+ehughsbaird@users.noreply.github.com> Co-authored-by: David Seguin <davidseguin@live.ca> Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Summary
None
Purpose of change
Camps are woefully underserved by our test suite.
Describe the solution
Make tests for things that have caused issues in the past and could come up again (e.g. #50805)
Describe alternatives you've considered
Let someone else write the tests? Hasn't worked so far!
Testing
This runs and works locally, both as an individual test, running just those two tests(this one and EOC_transform_radius) together, and running the whole suite.
Additional context
Ran into some problems with test ordering, see comments.