Skip to content

Commit

Permalink
Adapt other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Jan 18, 2022
1 parent 0ac2aa2 commit af50d41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions big_tests/tests/mongooseimctl_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1137,12 +1137,12 @@ graphql_wrong_arguments_number(Config) ->
simple_register(Config) ->
%% given
Domain = domain(),
{_, Password} = {<<"tyler">>, <<"durden">>},
{Name, Password} = {<<"tyler">>, <<"durden">>},
%% when
{R1, 0} = mongooseimctl("registered_users", [Domain], Config),
Before = length(string:tokens(R1, "\n")),
{_, 0} = mongooseimctl("register", [Domain, Password], Config),
{_, 0} = mongooseimctl("register", [Domain, Password], Config),
{_, 0} = mongooseimctl("register_identified", [Name, Domain, Password], Config),

{R2, 0} = mongooseimctl("registered_users", [Domain], Config),
After = length(string:tokens(R2, "\n")),
Expand Down
4 changes: 2 additions & 2 deletions big_tests/tests/rest_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,10 @@ password_can_be_changed(Config) ->
% test invalid calls
Res1 = putt(admin, path("users", ["bob"]),
#{newpass => <<>>}),
{?BAD_REQUEST, <<"empty password">>} = Res1,
{?BAD_REQUEST, <<"Empty password">>} = Res1,
Res2 = putt(admin, path("users", ["b@b"]),
#{newpass => NewPass}),
{?BAD_REQUEST, <<"invalid jid">>} = Res2,
{?BAD_REQUEST, <<"Invalid jid">>} = Res2,
ok.

list_contacts(Config) ->
Expand Down

0 comments on commit af50d41

Please sign in to comment.