From a681874f677ad771ff6a633e59f6d9ef7fc84fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Tue, 6 Dec 2016 18:33:16 +0100 Subject: [PATCH] Try to fix interminent failures in cyrsasl tests --- test/ejabberd_cyrsasl_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ejabberd_cyrsasl_test.exs b/test/ejabberd_cyrsasl_test.exs index 6b0127015..2d497a62f 100644 --- a/test/ejabberd_cyrsasl_test.exs +++ b/test/ejabberd_cyrsasl_test.exs @@ -32,6 +32,7 @@ defmodule EjabberdCyrsaslTest do :ok = :cyrsasl.start cyrstate = :cyrsasl.server_new("domain1", "domain1", "domain1", :ok, &get_password/1, &check_password/3, &check_password_digest/5) + setup_anonymous_mocks() {:ok, cyrstate: cyrstate} end @@ -53,7 +54,6 @@ defmodule EjabberdCyrsaslTest do end test "Anonymous", context do - setup_anonymous_mocks() step1 = :cyrsasl.server_start(context[:cyrstate], "ANONYMOUS", "domain1") assert {:ok, _} = step1 end