]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix test code
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 13 Nov 2022 20:42:17 +0000 (20:42 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 19 Nov 2022 12:44:14 +0000 (12:44 +0000)
test/functional/lua/maps_kv.lua

index 0b1b535bfa4c4eb71da983bf47f0d4b035d6ca86..1dd8d22909dda089f3566e03fbb0d39c417f5008 100644 (file)
@@ -82,9 +82,9 @@ rspamd_config:register_symbol({
   callback = function(task)
     local function cb(res, data, code)
       if res then
-        task:insert_result('EXTERNAL_MAP', string.format('+%s', data))
+        task:insert_result('EXTERNAL_MAP', 1.0, string.format('+%s', data))
       else
-        task:insert_result('EXTERNAL_MAP', string.format('-%s:%s', code, data))
+        task:insert_result('EXTERNAL_MAP', 1.0, string.format('-%s:%s', code, data))
       end
     end
     simple_ext_map:get_key({