Replace Travis-CI with Github actions, add support for OTP-25

This commit is contained in:
Sergey Prokhorov 2022-11-23 00:16:27 +01:00
parent a07e03f73a
commit 5fcedfdf9c
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337
5 changed files with 74 additions and 20 deletions

View file

@ -33,6 +33,7 @@ notify(Type, Name, Value, Extra) ->
get(Type, Name) ->
get(Type, Name, #{}).
-spec get(count | gauge | histogram, [atom()], [atom()]) -> integer() | not_found.
get(Type, Name, Extra) ->
gen_server:call(?MODULE, {get, Type, Name, Extra}).

View file

@ -436,9 +436,13 @@ policy_max_conns_case(Cfg) when is_list(Cfg) ->
Secret = ?config(mtp_secret, Cfg),
SureClose =
fun(Cli) ->
timer:sleep(500), %FIXME: sometimes metric returns not_found
PreClosed =
mtp_test_metric:get_tags(
count, [?APP, in_connection_closed, total], [?FUNCTION_NAME]),
case mtp_test_metric:get_tags(
count, [?APP, in_connection_closed, total], [?FUNCTION_NAME]) of
not_found -> 0;
N -> N
end,
ok = mtp_test_client:close(Cli),
ok = mtp_test_metric:wait_for_value(
count, [?APP, in_connection_closed, total], [?FUNCTION_NAME], PreClosed + 1, 5000)