]> source.dussan.org Git - rspamd.git/commitdiff
Fix upstream test.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Mar 2015 21:51:53 +0000 (21:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Mar 2015 21:51:53 +0000 (21:51 +0000)
test/rspamd_upstream_test.c

index 69e74485350d76f6793d5f50a2d64c50d0faa623..c6738b0ff212eb03fe0565eb56190bc96efe86ec 100644 (file)
@@ -157,7 +157,9 @@ rspamd_upstream_test_func (void)
        event_base_set (ev_base, &ev);
 
        up = rspamd_upstream_get (ls, RSPAMD_UPSTREAM_MASTER_SLAVE);
-       rspamd_upstream_fail (up);
+       for (i = 0; i < 100; i ++) {
+               rspamd_upstream_fail (up);
+       }
        g_assert (rspamd_upstreams_alive (ls) == 2);
 
        tv.tv_sec = 2;