Skip to content

Commit

Permalink
removing incorrect header comments from offline_stub_SUITE and making…
Browse files Browse the repository at this point in the history
… some cosmetic changes
  • Loading branch information
DenysGonchar committed Jun 1, 2021
1 parent be5cef7 commit 502f8a1
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions big_tests/tests/offline_stub_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
%%%===================================================================
%%% @copyright (C) 2011, Erlang Solutions Ltd.
%%% @doc Suite for testing mod_offline* modules
%%% @end
%%%===================================================================

-module(offline_stub_SUITE).
-compile(export_all).

Expand All @@ -22,19 +16,23 @@ suite() ->
%%% Init & teardown
%%%===================================================================

init_per_suite(C) -> escalus:init_per_suite(C).
end_per_suite(C) -> escalus_fresh:clean(), escalus:end_per_suite(C).
init_per_suite(C) ->
escalus:init_per_suite(C).

end_per_suite(C) ->
escalus_fresh:clean(),
escalus:end_per_suite(C).

init_per_testcase(Name, C) ->
init_per_testcase(Name, Config0) ->
HostType = domain_helper:host_type(),
Config = dynamic_modules:save_modules(HostType, C),
Config1 = dynamic_modules:save_modules(HostType, Config0),
dynamic_modules:ensure_stopped(HostType, [mod_offline]),
case Name of
with_mod_offline_stub ->
dynamic_modules:ensure_modules(HostType, [{mod_offline_stub, []}]);
_ -> ok
end,
escalus:init_per_testcase(Name, Config).
escalus:init_per_testcase(Name, Config1).

end_per_testcase(Name, C) ->
HostType = domain_helper:host_type(),
Expand Down

0 comments on commit 502f8a1

Please sign in to comment.