From: Vsevolod Stakhov Date: Tue, 2 Oct 2018 11:09:24 +0000 (+0100) Subject: [Test] Fix reload test X-Git-Tag: 1.8.1~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c03f12c4c9918a8545d6053cc40786b152b4c44e;p=rspamd.git [Test] Fix reload test --- diff --git a/test/functional/configs/maps/domains.list.2 b/test/functional/configs/maps/domains.list.2 index 850c64045..45cd0b2ec 100644 --- a/test/functional/configs/maps/domains.list.2 +++ b/test/functional/configs/maps/domains.list.2 @@ -1,2 +1,2 @@ -rspamd.com +rspamd-test.com #other.com diff --git a/test/functional/lua/mapreload.lua b/test/functional/lua/mapreload.lua index aa1de9392..572da10de 100644 --- a/test/functional/lua/mapreload.lua +++ b/test/functional/lua/mapreload.lua @@ -7,9 +7,9 @@ rspamd_config:register_symbol({ name = 'MAP_SET_HIT_AND_MISS', score = 1.0, callback = function() - if (test_map:get_key('example.com') and not test_map:get_key('rspamd.com')) then + if (test_map:get_key('example.com') and not test_map:get_key('rspamd-test.com')) then return true, 'example.com' - elseif (test_map:get_key('rspamd.com') and not test_map:get_key('example.com')) then + elseif (test_map:get_key('rspamd-test.com') and not test_map:get_key('example.com')) then return true, 'rspamd.com' end end