Skip to content

Commit

Permalink
Add check for successful login metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Zelazny committed Feb 17, 2015
1 parent 50d1d12 commit 71608ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/metrics_api_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ one_client_just_logs_in(Config) ->
{xmppMessageReceived, 0},
{xmppPresenceSent, 0 + user_alpha(1)},
{xmppPresenceReceived, 0 + user_alpha(1)},
{xmppStanzaSent, 1},
{xmppStanzaReceived, 1}
{xmppStanzaSent, 0 + user_alpha(1)},
{xmppStanzaReceived, 0 + user_alpha(1)},
{sessionSuccessfulLogins, 0 + user_alpha(1)}
]).

two_clients_just_log_in(Config) ->
Expand All @@ -99,7 +100,8 @@ two_clients_just_log_in(Config) ->
{xmppStanzaSent, 0 + user_alpha(2)},
{xmppStanzaReceived, 0 + user_alpha(2)},
{xmppPresenceSent, 0 + user_alpha(2)},
{xmppPresenceReceived, 0 + user_alpha(2)}
{xmppPresenceReceived, 0 + user_alpha(2)},
{sessionSuccessfulLogins, 0 + user_alpha(2)}
]).

one_message_sent(Config) ->
Expand Down Expand Up @@ -141,7 +143,6 @@ one_iq_sent(Config) ->
{xmppStanzaSent, 1 + user_alpha(1)},
{xmppStanzaReceived, 1 + user_alpha(1)}]).


one_message_error(Config) ->
instrumented_story
(Config, [{alice, 1}],
Expand All @@ -156,7 +157,6 @@ one_message_error(Config) ->
{xmppErrorMessage, 1},
{xmppErrorPresence, 0}]).


one_iq_error(Config) ->
instrumented_story
(Config, [{alice, 1}],
Expand Down

0 comments on commit 71608ae

Please sign in to comment.