Github user nickwallen commented on the issue:
https://github.com/apache/incubator-metron/pull/233
I have been tracing an issue caused by static initialization. I have a
Stellar function that uses values within the Context to perform initialization.
I have multiple tests in the same class; test1(), test2(), etc. In each of
these tests, I need to initialize the function with different values in the
Context.
If I run each test individually, everything works just fine, but if I run
all the tests together the tests fail. The problem is that the functions don't
actually re-initialize in test2() after they have already been initialized in
test1().
I think I need a way to manually clear the functions cached in
`FunctionResolverSingleton._getFunctions()` that I would call before running
each unit test.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---