mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Try to fix interminent failures in cyrsasl tests
This commit is contained in:
parent
1c8edd07a1
commit
a681874f67
@ -32,6 +32,7 @@ defmodule EjabberdCyrsaslTest do
|
|||||||
:ok = :cyrsasl.start
|
:ok = :cyrsasl.start
|
||||||
cyrstate = :cyrsasl.server_new("domain1", "domain1", "domain1", :ok, &get_password/1,
|
cyrstate = :cyrsasl.server_new("domain1", "domain1", "domain1", :ok, &get_password/1,
|
||||||
&check_password/3, &check_password_digest/5)
|
&check_password/3, &check_password_digest/5)
|
||||||
|
setup_anonymous_mocks()
|
||||||
{:ok, cyrstate: cyrstate}
|
{:ok, cyrstate: cyrstate}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -53,7 +54,6 @@ defmodule EjabberdCyrsaslTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "Anonymous", context do
|
test "Anonymous", context do
|
||||||
setup_anonymous_mocks()
|
|
||||||
step1 = :cyrsasl.server_start(context[:cyrstate], "ANONYMOUS", "domain1")
|
step1 = :cyrsasl.server_start(context[:cyrstate], "ANONYMOUS", "domain1")
|
||||||
assert {:ok, _} = step1
|
assert {:ok, _} = step1
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user