metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwallen <>
Subject [GitHub] incubator-metron issue #233: METRON-396: Make Stellar function resolution ha...
Date Tue, 06 Sep 2016 16:00:15 GMT
Github user nickwallen commented on the issue:
    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 or file a JIRA ticket
with INFRA.

View raw message