From: Vsevolod Stakhov Date: Tue, 15 Nov 2022 20:52:39 +0000 (+0000) Subject: [Test] Fix test tlds X-Git-Tag: 3.5~209 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a5c5410e696273fb161d762e369562ff9a53e25;p=thirdparty%2Frspamd.git [Test] Fix test tlds --- diff --git a/test/functional/lua/tlds.lua b/test/functional/lua/tlds.lua index 0908001da6..24836b3939 100644 --- a/test/functional/lua/tlds.lua +++ b/test/functional/lua/tlds.lua @@ -39,6 +39,7 @@ rspamd_config:register_symbol({ return end local u = rspamd_url.create(pool, p .. d) + assert(u, "cannot parse string: " .. p .. d) test = u:get_tld() if (test ~= d) then local opt = string.format('url.create:p=%s;d=%s;got=%s', p, d, test) diff --git a/test/lua/unit/test_tld.dat b/test/lua/unit/test_tld.dat index c1cd41723c..5a804f4a90 100644 --- a/test/lua/unit/test_tld.dat +++ b/test/lua/unit/test_tld.dat @@ -4,3 +4,16 @@ net рф za.org xn--p1ai +ac +b.br +co +co.za +in.net +star.kawasaki.jp +net.in +star.nom.br +org.ac +ru.com +za.net +za.org +org.za