From 7a6e4098797b24fc6e512e68d5e32c07efdfb4ef Mon Sep 17 00:00:00 2001 From: Stefan Strigler Date: Mon, 9 Jun 2025 16:38:52 +0200 Subject: [PATCH] mod_antispam: use message/3 in test --- test/antispam_tests.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) ->