Browse files

Fix bug in escalus_users:create_user

  • Loading branch information...
1 parent 6f87622 commit 14ca3870e7c3324af798d05f22743d0e7929eef8 @alipiec alipiec committed Mar 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/escalus_users.erl
View
8 src/escalus_users.erl
@@ -127,12 +127,12 @@ get_user_by_name(Name) ->
get_user_by_name(Name, get_users(all)).
create_user(Config, {_Name, UserSpec}) ->
- Options = get_options(Config, UserSpec),
- {ok, Conn, _} = lxmppc:connect(Options),
- lxmppc_session:start_stream(Conn, []),
+ Options0 = get_options(Config, UserSpec),
+ {ok, Conn, Options1} = lxmppc:connect(Options0),
+ lxmppc_session:start_stream(Conn, Options1),
lxmppc:send(Conn, escalus_stanza:get_registration_fields()),
{ok, result, RegisterInstrs} = wait_for_result(Conn),
- Answers = get_answers(Options, RegisterInstrs),
+ Answers = get_answers(Options1, RegisterInstrs),
lxmppc:send(Conn, escalus_stanza:register_account(Answers)),
Result = wait_for_result(Conn),
lxmppc:stop(Conn),

0 comments on commit 14ca387

Please sign in to comment.