test(emqx): fix test case error for emqx

This commit is contained in:
zhanghongtong 2020-12-19 10:51:11 +08:00 committed by Shawn
parent 443ff737ed
commit ce6411532b
2 changed files with 4 additions and 4 deletions

View File

@ -73,9 +73,9 @@ jobs:
- uses: actions/upload-artifact@v1
if: failure()
with:
name: logs
name: logs_mysql${{ matrix.mysql_vsn }}_reids${{ matrix.redis_vsn }}_mongo${{ matrix.mongo_vsn }}_pgsql${{ matrix.pgsql_vsn }}_ldap${{ matrix.ldap_vsn }}
path: _build/test/logs
- uses: actions/upload-artifact@v1
with:
name: cover
name: cover_mysql${{ matrix.mysql_vsn }}_reids${{ matrix.redis_vsn }}_mongo${{ matrix.mongo_vsn }}_pgsql${{ matrix.pgsql_vsn }}_ldap${{ matrix.ldap_vsn }}
path: _build/test/cover

View File

@ -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),