Skip to content

Commit

Permalink
removing incorrect header comments and making some cosmetic changes i…
Browse files Browse the repository at this point in the history
…n offline_stub_SUITE
  • Loading branch information
DenysGonchar committed Jun 1, 2021
1 parent be5cef7 commit 7fcc1e7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 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,24 +16,28 @@ 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(Config) ->
escalus:init_per_suite(Config).

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

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) ->
end_per_testcase(Name, Config) ->
HostType = domain_helper:host_type(),
dynamic_modules:restore_modules(HostType, C),
escalus:end_per_testcase(Name, C).
dynamic_modules:restore_modules(HostType, Config),
escalus:end_per_testcase(Name, Config).

%%%===================================================================
%%% offline tests
Expand Down

0 comments on commit 7fcc1e7

Please sign in to comment.