Skip to content

Commit

Permalink
update cached preparer call with kwargs (Azure#28814)
Browse files Browse the repository at this point in the history
  • Loading branch information
swathipil authored Feb 15, 2023
1 parent 155cb23 commit e06f84a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def _preparer_wrapper(test_class_instance, **kwargs):
if self._use_cache and aggregate_cache_key in AbstractPreparer._resource_cache:
_logger.debug("Using cached resource for %s", self.__class__.__name__)
with self._cache_lock:
new_kwargs = kwargs
resource_name, kwargs, _ = AbstractPreparer._resource_cache[aggregate_cache_key]
kwargs.update(new_kwargs)
else:
resource_name, kwargs = self._prepare_create_resource(test_class_instance, **kwargs)

Expand Down

0 comments on commit e06f84a

Please sign in to comment.