ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxmrlv <...@git.apache.org>
Subject [GitHub] incubator-ariatosca pull request #129: ARIA-213 Sporadic tests failures over...
Date Thu, 11 May 2017 13:26:04 GMT
Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/129#discussion_r115983463
  
    --- Diff: aria/storage/instrumentation.py ---
    @@ -53,30 +59,76 @@ def track_changes(instrumented=None):
         :param instrumented: A dict from model columns to their python native type
         :return: The instrumentation context
         """
    -    return _Instrumentation(instrumented or _INSTRUMENTED)
    +    return _Instrumentation(ctx, instrumented or _INSTRUMENTED)
     
     
     class _Instrumentation(object):
     
    -    def __init__(self, instrumented):
    +    def __init__(self, ctx, instrumented):
             self.tracked_changes = {}
    +        self.new_instances = {}
             self.listeners = []
    +        self._new_modeled_instances = []
    +        self._ctx = ctx
             self._track_changes(instrumented)
    +        self._new_instance_index = 0
    --- End diff --
    
    remove


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message