aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_upstream_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-14 21:51:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-14 21:51:53 +0000
commitcf1beeb1b2c3b39c5aa091868bc432c21bdb9f54 (patch)
tree7d5d6dd4624735c5d9d08b42f957fb49827bec21 /test/rspamd_upstream_test.c
parent77cb03664e09fe19ad455cb69f757f1e46f62032 (diff)
downloadrspamd-cf1beeb1b2c3b39c5aa091868bc432c21bdb9f54.tar.gz
rspamd-cf1beeb1b2c3b39c5aa091868bc432c21bdb9f54.zip
Fix upstream test.
Diffstat (limited to 'test/rspamd_upstream_test.c')
-rw-r--r--test/rspamd_upstream_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rspamd_upstream_test.c b/test/rspamd_upstream_test.c
index 69e744853..c6738b0ff 100644
--- a/test/rspamd_upstream_test.c
+++ b/test/rspamd_upstream_test.c
@@ -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;