From: Paweł Chmielowski Date: Tue, 6 Dec 2016 17:33:16 +0000 (+0100) Subject: Try to fix interminent failures in cyrsasl tests X-Git-Tag: 16.12~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a681874f677ad771ff6a633e59f6d9ef7fc84fbb;p=ejabberd Try to fix interminent failures in cyrsasl tests --- 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