From: Vsevolod Stakhov Date: Tue, 22 Oct 2019 11:12:38 +0000 (+0100) Subject: [Minor] Fix tostring tests X-Git-Tag: 2.1~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7afa72096c8ff2217d2f2ec52c533105de60e3b6;p=rspamd.git [Minor] Fix tostring tests --- diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua index b528ea9fb..e8e8c0b47 100644 --- a/test/lua/unit/selectors.lua +++ b/test/lua/unit/selectors.lua @@ -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")]],