Skip to content

Commit

Permalink
Expect two or three nodes in graphql_metric_SUITE:get_cluster_metrics…
Browse files Browse the repository at this point in the history
…_by_nonexistent_name
  • Loading branch information
arcusfelis committed Jan 27, 2023
1 parent bcd7394 commit 4fff507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions big_tests/tests/graphql_metric_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ get_cluster_metrics_by_nonexistent_name(Config) ->
Result = get_cluster_metrics_as_dicts_by_name([<<"nonexistent">>], Config),
ParsedResult = get_ok_value([data, metric, getClusterMetricsAsDicts], Result),
[#{<<"node">> := _, <<"result">> := []},
#{<<"node">> := _, <<"result">> := []}] = ParsedResult.
#{<<"node">> := _, <<"result">> := []}|_] = ParsedResult. %% two or three nodes

get_cluster_metrics_with_nonexistent_key(Config) ->
Result = get_cluster_metrics_as_dicts_with_keys([<<"nonexistent">>], Config),
ParsedResult = get_ok_value([data, metric, getClusterMetricsAsDicts], Result),
[#{<<"node">> := _, <<"result">> := [_|_]},
#{<<"node">> := _, <<"result">> := [_|_]}] = ParsedResult.
#{<<"node">> := _, <<"result">> := [_|_]}|_] = ParsedResult.

get_cluster_metrics_empty_args(Config) ->
Node = atom_to_binary(maps:get(node, distributed_helper:mim2())),
Expand Down

0 comments on commit 4fff507

Please sign in to comment.