diff options
Diffstat (limited to 'test/muc_tests.erl')
-rw-r--r-- | test/muc_tests.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/muc_tests.erl b/test/muc_tests.erl index e744e3fc9..2eb52eb19 100644 --- a/test/muc_tests.erl +++ b/test/muc_tests.erl @@ -468,7 +468,7 @@ history_master(Config) -> MyNick = ?config(nick, Config), MyNickJID = jid:replace_resource(Room, MyNick), PeerNickJID = peer_muc_jid(Config), - Size = gen_mod:get_module_opt(ServerHost, mod_muc, history_size, 20), + Size = mod_muc_opt:history_size(iolist_to_binary(ServerHost)), ok = join_new(Config), ct:comment("Putting ~p+1 messages in the history", [Size]), %% Only Size messages will be stored @@ -496,7 +496,7 @@ history_slave(Config) -> PeerNick = ?config(peer_nick, Config), PeerNickJID = jid:replace_resource(Room, PeerNick), ServerHost = ?config(server_host, Config), - Size = gen_mod:get_module_opt(ServerHost, mod_muc, history_size, 20), + Size = mod_muc_opt:history_size(iolist_to_binary(ServerHost)), ct:comment("Waiting for 'join' command from the master"), join = get_event(Config), {History, _, _} = join(Config), @@ -1785,7 +1785,7 @@ master_join(Config) -> wait_for_slave(Config), #muc_user{items = [#muc_item{jid = PeerJID, role = participant, - affiliation = none}]} = + affiliation = none}]} = recv_muc_presence(Config, PeerNickJID, available), ok. |