]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix test tlds
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 15 Nov 2022 20:52:39 +0000 (20:52 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 15 Nov 2022 20:52:39 +0000 (20:52 +0000)
test/functional/lua/tlds.lua
test/lua/unit/test_tld.dat

index 0908001da666d8f83ef42a0f3c285ff8b6aa9f94..24836b393957fa59abe68f1c9c87f5328da4a21b 100644 (file)
@@ -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)
index c1cd41723c068b5577cfed5e3a4305b4645eca82..5a804f4a90f9b7ce1028160f202d7b55ba960815 100644 (file)
@@ -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