From 421c0e4641cd2fd0d9d28101e4475ea4773bfdf7 Mon Sep 17 00:00:00 2001 From: Kamil Gierszewski Date: Wed, 16 Oct 2024 15:16:52 +0200 Subject: [PATCH] test-api: fix stat type Signed-off-by: Kamil Gierszewski --- test/functional/api/cas/cache.py | 2 +- test/functional/api/cas/cache_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/api/cas/cache.py b/test/functional/api/cas/cache.py index 460010a..e752a0f 100644 --- a/test/functional/api/cas/cache.py +++ b/test/functional/api/cas/cache.py @@ -194,7 +194,7 @@ class Cache: def set_params_nhit(self, promotion_params_nhit: PromotionParametersNhit) -> Output: return casadm.set_param_promotion_nhit( self.cache_id, - threshold=promotion_params_nhit.threshold.get_value(), + threshold=promotion_params_nhit.threshold, trigger=promotion_params_nhit.trigger ) diff --git a/test/functional/api/cas/cache_config.py b/test/functional/api/cas/cache_config.py index 7bb5d6f..128d4dc 100644 --- a/test/functional/api/cas/cache_config.py +++ b/test/functional/api/cas/cache_config.py @@ -240,7 +240,7 @@ class SeqCutOffParameters: class PromotionParametersNhit: - def __init__(self, threshold: Size = None, trigger: int = None): + def __init__(self, threshold: int = None, trigger: int = None): self.threshold = threshold self.trigger = trigger