Skip to content

Commit

Permalink
Add send_dump_received_when_unpaused_is_logged testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Dec 23, 2023
1 parent d183c93 commit 0fd8fab
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions test/cets_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ cases() ->
format_data_does_not_return_table_duplicates,
cets_ping_non_existing_node,
cets_ping_net_family,
unexpected_nodedown_is_ignored_by_disco
unexpected_nodedown_is_ignored_by_disco,
ignore_send_dump_received_when_unpaused,
ignore_send_dump_received_when_paused_with_another_pause_ref
].

only_for_logger_cases() ->
Expand All @@ -176,8 +178,7 @@ only_for_logger_cases() ->
other_reason_is_logged_in_tracked,
nested_calls_errors_are_logged_once_with_tuple_reason,
nested_calls_errors_are_logged_once_with_map_reason,
ignore_send_dump_received_when_unpaused,
ignore_send_dump_received_when_paused_with_another_pause_ref
send_dump_received_when_unpaused_is_logged
].

seq_cases() ->
Expand Down Expand Up @@ -1168,6 +1169,19 @@ servers_remove_each_other_each_other_if_join_refs_do_not_match_after_unpause(Con
ignore_send_dump_received_when_paused_with_another_pause_ref(Config) ->
ignore_send_dump_received_when_unpaused([{extra_pause, true} | Config]).

send_dump_received_when_unpaused_is_logged(Config) ->
logger_debug_h:start(#{id => ?FUNCTION_NAME}),
ignore_send_dump_received_when_unpaused(Config),
receive
{log, ?FUNCTION_NAME, #{
level := error,
msg := {report, #{what := send_dump_received_when_unpaused}}
}} ->
ok
after 5000 ->
ct:fail(timeout)
end.

ignore_send_dump_received_when_unpaused(Config) ->
Self = self(),
%% Check that even if we have already added server in send_dump, nothing crashes
Expand Down

0 comments on commit 0fd8fab

Please sign in to comment.