commit eda5cfa: [Minor] Fix broken test

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Mar 4 18:21:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-03-04 18:17:41 +0000
URL: https://github.com/rspamd/rspamd/commit/eda5cfa386112a56b3bcdcca28b58bc0f6461c40 (HEAD -> master)

[Minor] Fix broken test

---
 test/rspamd_upstream_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c
index 668651c8f..f9eb2bcfd 100644
--- a/test/rspamd_upstream_test.c
+++ b/test/rspamd_upstream_test.c
@@ -110,7 +110,7 @@ rspamd_upstream_test_func (void)
 		next_addr = rspamd_upstream_addr_next (up);
 		g_assert (rspamd_inet_address_get_af (addr) == AF_INET);
 		g_assert (rspamd_inet_address_get_af (next_addr) == AF_INET);
-		g_assert (rspamd_inet_address_compare (addr, next_addr) != 0);
+		g_assert (rspamd_inet_address_compare (addr, next_addr, FALSE) != 0);
 		addr = next_addr;
 	}
 	rspamd_upstreams_destroy (nls);


More information about the Commits mailing list