]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix tostring tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Oct 2019 11:12:38 +0000 (12:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Oct 2019 11:12:38 +0000 (12:12 +0100)
test/lua/unit/selectors.lua

index b528ea9fb17de864bd98104f6305b4c8120c6053..e8e8c0b474f0f940dca86f76c58e14dd3329196b 100644 (file)
@@ -149,7 +149,7 @@ context("Selectors test", function()
 
     ["emails"] = {
                 selector = "emails",
-                expect = {{"mailto://test@example.net"}}},
+                expect = {{"test@example.net"}}},
 
     ["specific_urls"] = {
       selector = "specific_urls({limit = 1})",
@@ -157,11 +157,11 @@ context("Selectors test", function()
 
     ["specific_urls + emails"] = {
       selector = "specific_urls({need_emails = true, limit = 2})",
-      expect = {{"http://example.net", "mailto://test@example.net"}}},
+      expect = {{"test@example.net", "http://example.net"}}},
 
     ["specific_urls + emails limit"] = {
       selector = "specific_urls({need_emails = true, limit = 1})",
-      expect = {{"mailto://test@example.net"}}},
+      expect = {{"test@example.net"}}},
 
     ["pool_var str, default type"] = {
                 selector = [[pool_var("str_var")]],