Skip to content

Commit

Permalink
Queries through RPC don't require satinising prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed May 17, 2022
1 parent 41e2b88 commit 79742d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions big_tests/tests/metrics_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ get_counter_value(CounterName) ->
get_counter_value(domain_helper:host_type(mim), CounterName).

get_counter_value(HostType, Metric) ->
HostTypeName = make_host_type_name(HostType),
case rpc(mim(), mongoose_metrics, get_metric_value, [HostTypeName, Metric]) of
case rpc(mim(), mongoose_metrics, get_metric_value, [HostType, Metric]) of
{ok, [{count, Total}, {one, _}]} ->
{value, Total};
{ok, [{value, Value} | _]} when is_integer(Value) ->
Expand All @@ -34,8 +33,7 @@ assert_counter(Value, CounterName) ->
assert_counter(domain_helper:host_type(mim), Value, CounterName).

assert_counter(HostType, Value, CounterName) ->
HostTypeName = make_host_type_name(HostType),
{value, Value} = get_counter_value(HostTypeName, CounterName).
{value, Value} = get_counter_value(HostType, CounterName).

-spec prepare_by_all_metrics_are_global(Config :: list(), UseAllMetricsAreGlobal :: boolean()) ->
list().
Expand Down

0 comments on commit 79742d3

Please sign in to comment.