From f3ac40859446c3f6829d52cfd0ae8066e5b5b2c8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 21 Nov 2015 13:31:26 +0000 Subject: Use new rotation logic in the code --- test/rspamd_upstream_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c index 6ed14dbf5..a446cc05d 100644 --- a/test/rspamd_upstream_test.c +++ b/test/rspamd_upstream_test.c @@ -39,7 +39,7 @@ rspamd_upstream_test_method (struct upstream_list *ls, struct upstream *up; if (rot != RSPAMD_UPSTREAM_HASHED) { - up = rspamd_upstream_get (ls, rot); + up = rspamd_upstream_get (ls, rot, NULL, 0); g_assert (up != NULL); g_assert (strcmp (rspamd_upstream_name (up), expected) == 0); } @@ -133,7 +133,7 @@ rspamd_upstream_test_func (void) */ nls = rspamd_upstreams_create (cfg->ups_ctx); g_assert (rspamd_upstreams_add_upstream (nls, "127.0.0.1", 0, NULL)); - up = rspamd_upstream_get (nls, RSPAMD_UPSTREAM_RANDOM); + up = rspamd_upstream_get (nls, RSPAMD_UPSTREAM_RANDOM, NULL, 0); rspamd_parse_inet_address (&paddr, "127.0.0.2", 0); g_assert (rspamd_upstream_add_addr (up, paddr)); rspamd_parse_inet_address (&paddr, "::1", 0); @@ -152,7 +152,7 @@ rspamd_upstream_test_func (void) evtimer_set (&ev, rspamd_upstream_timeout_handler, resolver); event_base_set (ev_base, &ev); - up = rspamd_upstream_get (ls, RSPAMD_UPSTREAM_MASTER_SLAVE); + up = rspamd_upstream_get (ls, RSPAMD_UPSTREAM_MASTER_SLAVE, NULL, 0); for (i = 0; i < 100; i ++) { rspamd_upstream_fail (up); } -- cgit v1.2.3