|
|
@@ -42,8 +42,8 @@ t_start_child(_) ->
|
|
|
modules => [Mod]},
|
|
|
|
|
|
{ok, _} = emqx_mod_sup:start_link(),
|
|
|
- {ok, _} = emqx_mod_sup:start_child(Mod, worker),
|
|
|
- {error, {already_started, _}} = emqx_mod_sup:start_child(Spec),
|
|
|
+ ok = emqx_mod_sup:start_child(Mod, worker),
|
|
|
+ ?assertError({already_started, _}, emqx_mod_sup:start_child(Spec)),
|
|
|
|
|
|
ok = emqx_mod_sup:stop_child(Mod),
|
|
|
{error, not_found} = emqx_mod_sup:stop_child(Mod),
|