1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 01:39:35 +02:00

Result of running "make format"

This commit is contained in:
Badlop 2025-06-18 11:35:06 +02:00
parent d9a7b67f0e
commit f3b1b5d419

View file

@ -247,14 +247,13 @@ rtbl_domains_whitelisted(Config) ->
spam_dump_file(Config) ->
{ok, CWD} = file:get_cwd(),
Filename = filename:join([CWD, "spam.log"]),
?retry(100, 100,
?match(true, size(get_bytes(Filename)) > 0)),
?retry(100, 100, ?match(true, size(get_bytes(Filename)) > 0)),
From = jid:make(<<"spammer_jid">>, <<"localhost">>, <<"spam_client">>),
To = my_jid(Config),
is_spam(message(From, To, <<"A very specific spam message">>)),
?retry(100, 100,
?match({match, _},
re:run(get_bytes(Filename), <<"A very specific spam message">>))).
?retry(100,
100,
?match({match, _}, re:run(get_bytes(Filename), <<"A very specific spam message">>))).
%%%===================================================================
%%% Internal functions