aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_dkim_test.c4
-rw-r--r--test/rspamd_dns_test.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/rspamd_dkim_test.c b/test/rspamd_dkim_test.c
index b0491de0b..81500dcc5 100644
--- a/test/rspamd_dkim_test.c
+++ b/test/rspamd_dkim_test.c
@@ -42,7 +42,7 @@ test_key_handler (rspamd_dkim_key_t *key, gsize keylen, rspamd_dkim_context_t *c
struct rspamd_async_session *s = ud;
g_assert (key != NULL);
- destroy_session (s);
+ rspamd_session_destroy (s);
}
static gboolean
@@ -85,7 +85,7 @@ rspamd_dkim_test_func ()
g_assert (ctx != NULL);
/* Key part */
- s = new_async_session (pool, session_fin, NULL, NULL, NULL);
+ s = rspamd_session_create (pool, session_fin, NULL, NULL, NULL);
g_assert (rspamd_get_dkim_key (ctx, resolver, s, test_key_handler, s));
diff --git a/test/rspamd_dns_test.c b/test/rspamd_dns_test.c
index 5728b5a2d..dd2447d9c 100644
--- a/test/rspamd_dns_test.c
+++ b/test/rspamd_dns_test.c
@@ -80,7 +80,7 @@ rspamd_dns_test_func ()
pool = rspamd_mempool_new (rspamd_mempool_suggest_size ());
- s = new_async_session (pool, session_fin, NULL, NULL, NULL);
+ s = rspamd_session_create (pool, session_fin, NULL, NULL, NULL);
resolver = dns_resolver_init (NULL, base, cfg);