aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-20 10:13:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-20 10:13:52 +0100
commit2bccf655b4095d88ad334d00c3f4bf51135b8f39 (patch)
treee1d1022233519566c8662a620a0cd05122c28a45 /test
parent9cf160595f0c66f8cdcbecc78c2e75b3984f4f94 (diff)
downloadrspamd-2bccf655b4095d88ad334d00c3f4bf51135b8f39.tar.gz
rspamd-2bccf655b4095d88ad334d00c3f4bf51135b8f39.zip
[Rework] Lua_util: Another rework for extract_specific_urls
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/lua_util.extract_specific_urls.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/unit/lua_util.extract_specific_urls.lua b/test/lua/unit/lua_util.extract_specific_urls.lua
index 93816745e..c84a7ca8d 100644
--- a/test/lua/unit/lua_util.extract_specific_urls.lua
+++ b/test/lua/unit/lua_util.extract_specific_urls.lua
@@ -192,8 +192,8 @@ context("Lua util - extract_specific_urls", function()
local actual = util.extract_specific_urls({
task = task,
- limit = 2,
- esld_limit = 2,
+ limit = 1,
+ esld_limit = 1,
})
local actual_result = prepare_actual_result(actual)
@@ -202,7 +202,7 @@ context("Lua util - extract_specific_urls", function()
local s = logger.slog("case[%1] %2 =?= %3", i, expect, actual_result)
print(s) --]]
- assert_equal("domain.com", actual_result[1], "checking that first url is the one with highest suspiciousness level")
+ assert_rspamd_table_eq({actual = actual_result, expect = {"domain.com"}})
end)
end)