Skip to content

Commit

Permalink
Merge pull request #106 from esl/stanza_log
Browse files Browse the repository at this point in the history
Fix the check for Common Test.
  • Loading branch information
erszcz committed Apr 20, 2016
2 parents bea5e0a + e748f5e commit 0151364
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/escalus_ct.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
-export([add_log_link/3,
fail/1,
get_config/1,
log_stanza/3,
is_ct_available/0]).
log_stanza/3]).

%% What about that?
-export([rpc_call/6]).
Expand Down Expand Up @@ -87,15 +86,11 @@ log_stanza(Jid, Direction, Stanza) ->

-spec is_ct_available() -> boolean().
is_ct_available() ->
case application:get_env(?APPNAME, common_test) of
%% For a transitional period let's assume that unless
%% {common_test, false} is defined, Common Test is available.
undefined ->
true;
{ok, true} ->
true;
case ct:get_status() of
no_tests_running ->
false;
_ ->
false
true
end.

-spec do_log_stanza(binary(), in | out, exml:element()) -> ok.
Expand Down

0 comments on commit 0151364

Please sign in to comment.