From: Vsevolod Stakhov Date: Sun, 13 Nov 2022 20:42:17 +0000 (+0000) Subject: [Test] Fix test code X-Git-Tag: 3.5~204^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=997a91110cc4eb63e7012d0b21b9a9bc5bdff325;p=rspamd.git [Test] Fix test code --- diff --git a/test/functional/lua/maps_kv.lua b/test/functional/lua/maps_kv.lua index 0b1b535bf..1dd8d2290 100644 --- a/test/functional/lua/maps_kv.lua +++ b/test/functional/lua/maps_kv.lua @@ -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({