Fixes: #4875 monkeypatch st2 sensor earlier#4976
Conversation
…com/StackStorm/st2 into monkey_patch_sensorcontainer_sooner
|
Yeah monkey patching should always be the very first thing. Before imports. Awesome work |
cognifloyd
left a comment
There was a problem hiding this comment.
This looks good to me. monkey_patch() should definitely come before imports wherever required. There is one typo in a comment.
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
|
It looks like these are all in the |
Kami
left a comment
There was a problem hiding this comment.
LGTM, good catch (we had a couple of similar issues like that in the past) 👍
Any chance we could some how add a test case for it?
|
@Kami Do you have any suggestions for how to add a test case for this? The only thing I can think of is adding one that fails if we see a recursion error? |
Co-authored-by: Eugen C. <stackstorm@armab.io>
Co-authored-by: Eugen C. <stackstorm@armab.io>
Fixes: #4975
Fixes: #4832