aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2022-11-05 10:19:57 +0100
committerPetr Vaněk <arkamar@atlas.cz>2022-11-05 11:34:50 +0100
commit059e2e69731c599d887a68356662fcf196d8a715 (patch)
treefc379a0e4e4687f234cb4941e244176fd79f81a7 /test
parentb2f0dd775c6d3f78234c5e2d1118eac21490bbd5 (diff)
downloadrspamd-059e2e69731c599d887a68356662fcf196d8a715.tar.gz
rspamd-059e2e69731c599d887a68356662fcf196d8a715.zip
[Test] Remove test case with non-deterministic result
Removed test case does not work with luajit-2.1 anymore as it depends on internal behavior of lujait-2.0. The order of URL list returned by `extract_specific_urls` function from `lualib/lua_util` depends on order of keys in table of TLDs. The test case incorrectly expects "net" and "com" being in front of the table, however, "org" can appear there as well.
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/lua_util.extract_specific_urls.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/lua/unit/lua_util.extract_specific_urls.lua b/test/lua/unit/lua_util.extract_specific_urls.lua
index 05ffeb7b0..a7e2f9f48 100644
--- a/test/lua/unit/lua_util.extract_specific_urls.lua
+++ b/test/lua/unit/lua_util.extract_specific_urls.lua
@@ -108,7 +108,6 @@ context("Lua util - extract_specific_urls plain", function()
local cases = {
{expect = url_list, filter = nil, limit = 9999, need_emails = true, prefix = 'p'},
{expect = {}, filter = (function() return false end), limit = 9999, need_emails = true, prefix = 'p'},
- {expect = {"domain4.co.net", "test.com"}, filter = nil, limit = 2, need_emails = true, prefix = 'p'},
{expect = {"domain4.co.net", "test.com", "domain3.org"}, filter = nil, limit = 3, need_emails = true, prefix = 'p'},
{
expect = {"gov.co.net", "tesco.co.net", "domain1.co.net", "domain2.co.net", "domain3.co.net", "domain4.co.net"},