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