diff options
Diffstat (limited to 'spec/lib/gitlab/metrics/sli_spec.rb')
-rw-r--r-- | spec/lib/gitlab/metrics/sli_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/metrics/sli_spec.rb b/spec/lib/gitlab/metrics/sli_spec.rb index 102ea442b3a..d100f66be19 100644 --- a/spec/lib/gitlab/metrics/sli_spec.rb +++ b/spec/lib/gitlab/metrics/sli_spec.rb @@ -172,11 +172,11 @@ RSpec.describe Gitlab::Metrics::Sli do fake_counter end - def fake_total_counter(name) - fake_prometheus_counter("gitlab_sli:#{name}:total") + def fake_total_counter(name, separator = '_') + fake_prometheus_counter(['gitlab_sli', name, 'total'].join(separator)) end - def fake_numerator_counter(name, numerator_name) - fake_prometheus_counter("gitlab_sli:#{name}:#{numerator_name}_total") + def fake_numerator_counter(name, numerator_name, separator = '_') + fake_prometheus_counter(["gitlab_sli", name, "#{numerator_name}_total"].join(separator)) end end |