]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix reload test
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Oct 2018 11:09:24 +0000 (12:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Oct 2018 11:09:24 +0000 (12:09 +0100)
test/functional/configs/maps/domains.list.2
test/functional/lua/mapreload.lua

index 850c64045ad17c55e4bd066c9eed32bc20d8ec0b..45cd0b2ec5bf1e07df5a28336d4cd61e8c6edf0b 100644 (file)
@@ -1,2 +1,2 @@
-rspamd.com
+rspamd-test.com
 #other.com
index aa1de93925362e35b5a4fde2ad8a1a405636e84d..572da10de72d10043247da6b01d91dc31322c643 100644 (file)
@@ -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