aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-03-03 21:09:27 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-03-03 21:09:27 +0300
commit63dba3fd640c096c5e7956b8d910c55ecdb194d2 (patch)
treeb17fb85d04da9da05c950dc03dfabcf251cddf59 /test
parentLet a MUC room to route presences from its bare JID (diff)
parentRevert "Support for default values in default_room_opts" (diff)
Merge branch 'master' into muc-self-presence
Diffstat (limited to 'test')
-rwxr-xr-xtest/ejabberd_SUITE_data/extauth.py4
-rw-r--r--test/suite.erl10
2 files changed, 12 insertions, 2 deletions
diff --git a/test/ejabberd_SUITE_data/extauth.py b/test/ejabberd_SUITE_data/extauth.py
index 263d6464e..b6a217fcc 100755
--- a/test/ejabberd_SUITE_data/extauth.py
+++ b/test/ejabberd_SUITE_data/extauth.py
@@ -13,6 +13,10 @@ def read():
write(True)
elif cmd == 'isuser':
u, s = pkt.split(':', 2)[1:]
+ if u == "wrong":
+ write(False)
+ else:
+ write(True)
elif cmd == 'setpass':
u, s, p = pkt.split(':', 3)[1:]
write(True)
diff --git a/test/suite.erl b/test/suite.erl
index b91583d18..960cbdc90 100644
--- a/test/suite.erl
+++ b/test/suite.erl
@@ -89,8 +89,14 @@ init_config(Config) ->
ConfigPath = filename:join([CWD, "ejabberd.yml"]),
ok = file:write_file(ConfigPath, CfgContent2),
setup_ejabberd_lib_path(Config),
- ok = application:load(sasl),
- ok = application:load(mnesia),
+ case application:load(sasl) of
+ ok -> ok;
+ {error, {already_loaded, _}} -> ok
+ end,
+ case application:load(mnesia) of
+ ok -> ok;
+ {error, {already_loaded, _}} -> ok
+ end,
case application:load(ejabberd) of
ok -> ok;
{error, {already_loaded, _}} -> ok