mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Try to fix interminent failures in cyrsasl tests
This commit is contained in:
parent
1c8edd07a1
commit
a681874f67
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue