]> granicus.if.org Git - ejabberd/commitdiff
Try to fix interminent failures in cyrsasl tests
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 6 Dec 2016 17:33:16 +0000 (18:33 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 6 Dec 2016 17:33:16 +0000 (18:33 +0100)
test/ejabberd_cyrsasl_test.exs

index 6b0127015dc5b1f449b15cbabeacb0c7bf863c19..2d497a62fa005ef292016e5b06a6bb08d65c2ebd 100644 (file)
@@ -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