]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Fix tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2020 16:53:02 +0000 (16:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2020 16:53:02 +0000 (16:53 +0000)
test/lua/unit/selectors.lua

index 3367a6df8e5e1d85fa4e7e06bf558ec682f1f04e..063d44e35ea545acaf8f4d34dff584ba6f889e9f 100644 (file)
@@ -169,17 +169,17 @@ context("Selectors test", function()
                 selector = "helo",
                 expect = {"hello mail"}},
 
-    ["received by hostname"] = {
-                selector = "received:by_hostname",
+    ["received ip"] = {
+                selector = "received:by_hostname.filter_string_nils",
                 expect = {{"server1.chat-met-vreemden.nl", "server2.chat-met-vreemden.nl"}}},
 
     ["received by hostname last"] = {
-      selector = "received:by_hostname.last",
+      selector = "received:by_hostname.filter_string_nils.last",
       expect = {"server2.chat-met-vreemden.nl"}
     },
 
     ["received by hostname first"] = {
-      selector = "received:by_hostname.first",
+      selector = "received:by_hostname.filter_string_nils.first",
       expect = {"server1.chat-met-vreemden.nl"}
     },