aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_http_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-19 12:16:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-19 12:16:38 +0100
commit6e96935b1399008099e388bfc29747da401e081c (patch)
treee6c97a3709ca156cf343814116949cdadd19cddb /test/rspamd_http_test.c
parentb31b6f5f7587a2a862901e229a38b0a82d94897c (diff)
downloadrspamd-6e96935b1399008099e388bfc29747da401e081c.tar.gz
rspamd-6e96935b1399008099e388bfc29747da401e081c.zip
Fix http test.
Diffstat (limited to 'test/rspamd_http_test.c')
-rw-r--r--test/rspamd_http_test.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/rspamd_http_test.c b/test/rspamd_http_test.c
index ac8c0113a..ad3cb48d7 100644
--- a/test/rspamd_http_test.c
+++ b/test/rspamd_http_test.c
@@ -257,7 +257,7 @@ rspamd_http_test_func (void)
mtx = rspamd_mempool_get_mutex (pool);
rspamd_parse_inet_address (&addr, "127.0.0.1", 0);
- rspamd_inet_address_set_port (addr, ottery_rand_range (30000) + 32768);
+ rspamd_inet_address_set_port (addr, 43898);
serv_key = rspamd_http_connection_gen_key ();
client_key = rspamd_http_connection_gen_key ();
c = rspamd_keypair_cache_new (16);
@@ -384,6 +384,10 @@ rspamd_http_test_func (void)
/* AES mode */
if (rspamd_cryptobox_openssl_mode (TRUE)) {
+ serv_key = rspamd_http_connection_gen_key ();
+ client_key = rspamd_http_connection_gen_key ();
+ c = rspamd_keypair_cache_new (16);
+
kill (sfd, SIGTERM);
wait (&res);
sfd = fork ();
@@ -412,7 +416,7 @@ rspamd_http_test_func (void)
addr,
client_key,
peer_key,
- c,
+ NULL,
ev_base,
&latency[i * pconns + j]);
}