Skip to content

Commit 84945e0

Browse files
authored
TD-793: Refactor cascade tests (#103)
* Refactor cascade tests * Fix spec * Fix tests
1 parent 30e14fe commit 84945e0

File tree

3 files changed

+932
-412
lines changed

3 files changed

+932
-412
lines changed

apps/hellgate/src/hg_cascade.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ handle_trigger_check(negative_trigger) ->
4141
false.
4242

4343
is_user_interaction_triggered(undefined, _, _) ->
44-
not_trigger;
44+
not_triggered;
4545
is_user_interaction_triggered(
4646
#domain_CascadeWhenNoUI{}, Route, Sessions
4747
) ->

apps/hellgate/test/hg_ct_helper.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ start_apps(Apps) ->
315315
Apps
316316
).
317317

318-
-type config() :: [{atom(), term()}].
318+
-type config() :: [{term(), term()}].
319319
-type test_case_name() :: atom().
320320
-type group_name() :: atom().
321321

322-
-spec cfg(atom(), config()) -> term().
322+
-spec cfg(term(), config()) -> term().
323323
cfg(Key, Config) ->
324324
case lists:keyfind(Key, 1, Config) of
325325
{Key, V} -> V;

0 commit comments

Comments
 (0)