From 067b0d31b347f827baad117644f14d36fccce9da Mon Sep 17 00:00:00 2001 From: Mikhail Uvarov Date: Fri, 31 Mar 2023 09:03:09 +0200 Subject: [PATCH] Expect two or three nodes in graphql_metric_SUITE:get_cluster_metrics_by_nonexistent_name --- big_tests/tests/graphql_metric_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/big_tests/tests/graphql_metric_SUITE.erl b/big_tests/tests/graphql_metric_SUITE.erl index 3326dfaac7..b50ff43fa8 100644 --- a/big_tests/tests/graphql_metric_SUITE.erl +++ b/big_tests/tests/graphql_metric_SUITE.erl @@ -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())),