mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-05-13 08:46:46 +00:00
Replace Travis-CI with Github actions, add support for OTP-25
This commit is contained in:
parent
a07e03f73a
commit
5fcedfdf9c
5 changed files with 74 additions and 20 deletions
|
|
@ -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}).
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue