diff options
-rw-r--r-- | test/rspamd_upstream_test.c | 4 |
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; |