From c8e6b96ecea18062292e3e689de2d416a99c20c2 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Fri, 19 Apr 2019 17:01:06 -0400 Subject: [PATCH] pyocf: remove put from cache stop to match get count Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/types/cache.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index b3d444b..7e9d294 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -302,7 +302,7 @@ class Cache: @classmethod def start_on_device(cls, device, **kwargs): - c = cls(locked=True, owner=device.owner, **kwargs) + c = cls(owner=device.owner, **kwargs) c.start_cache() try: @@ -494,7 +494,6 @@ class Cache: self.started = False self.put_and_write_unlock() - self.put() self.owner.caches.remove(self)