From c03f12c4c9918a8545d6053cc40786b152b4c44e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 2 Oct 2018 12:09:24 +0100 Subject: [PATCH] [Test] Fix reload test --- test/functional/configs/maps/domains.list.2 | 2 +- test/functional/lua/mapreload.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5