Apply suggestions from code review

Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
pull/3405/head
KPrasch 2024-01-12 12:18:25 +01:00 committed by KPrasch
parent 253a2067e3
commit 8dbaaaa8fd
2 changed files with 3 additions and 3 deletions

View File

@ -162,8 +162,8 @@ class StakingProviderMetricsCollector(BaseMetricsCollector):
def initialize(self, registry: CollectorRegistry) -> None:
self.metrics = {
"active_stake_gauge": Gauge(
"associated_active_stake",
"Total amount of T staked (adapted NU/KEEP and liquid T)",
"active_stake",
"Total amount of T staked",
registry=registry,
),
"operator_confirmed_gauge": Gauge(

View File

@ -129,7 +129,7 @@ def test_staking_provider_metrics_collector(test_registry, staking_providers):
TACoApplicationAgent, registry=test_registry
)
active_stake = collector_registry.get_sample_value("associated_active_stake")
active_stake = collector_registry.get_sample_value("active_stake")
# only floats can be stored
assert active_stake == float(
int(