1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

mod_antispam: use message/3 in test

This commit is contained in:
Stefan Strigler 2025-06-09 16:38:52 +02:00
parent ea19e4bc7f
commit 7a6e409879

View file

@ -96,10 +96,7 @@ empty_domain_list(Config) ->
?match([], mod_antispam:get_blocked_domains(Host)), ?match([], mod_antispam:get_blocked_domains(Host)),
SpamFrom = jid:make(<<"spammer">>, <<"spam.domain">>, <<"spam_client">>), SpamFrom = jid:make(<<"spammer">>, <<"spam.domain">>, <<"spam_client">>),
To = my_jid(Config), To = my_jid(Config),
Msg = #message{from = SpamFrom, Msg = message(SpamFrom, To, <<"hello world">>),
to = To,
type = chat,
body = [#text{data = <<"hello world">>}]},
is_not_spam(Msg). is_not_spam(Msg).
block_domain_globally(Config) -> block_domain_globally(Config) ->