fix: check for sane state after regular shutdown
This commit is contained in:
parent
4e077c951b
commit
c1ef773e77
|
@ -483,11 +483,10 @@ t_failed_creation_then_fix(Config) ->
|
||||||
{ok, {_, [KafkaMsg]}} = brod:fetch(kafka_hosts(), KafkaTopic, 0, Offset),
|
{ok, {_, [KafkaMsg]}} = brod:fetch(kafka_hosts(), KafkaTopic, 0, Offset),
|
||||||
?assertMatch(#kafka_message{key = BinTime}, KafkaMsg),
|
?assertMatch(#kafka_message{key = BinTime}, KafkaMsg),
|
||||||
% %% TODO: refactor those into init/end per testcase
|
% %% TODO: refactor those into init/end per testcase
|
||||||
ok = ?PRODUCER:on_stop(ResourceId, State),
|
|
||||||
?assertEqual([], supervisor:which_children(wolff_client_sup)),
|
|
||||||
?assertEqual([], supervisor:which_children(wolff_producers_sup)),
|
|
||||||
ok = emqx_bridge:remove(list_to_atom(Type), list_to_atom(Name)),
|
ok = emqx_bridge:remove(list_to_atom(Type), list_to_atom(Name)),
|
||||||
delete_all_bridges(),
|
delete_all_bridges(),
|
||||||
|
?assertEqual([], supervisor:which_children(wolff_client_sup)),
|
||||||
|
?assertEqual([], supervisor:which_children(wolff_producers_sup)),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
t_custom_timestamp(_Config) ->
|
t_custom_timestamp(_Config) ->
|
||||||
|
|
Loading…
Reference in New Issue