Parcourir la source

test(emqx): fix test case error for emqx

zhanghongtong il y a 5 ans
Parent
commit
ce6411532b
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      .github/workflows/run_test_cases.yaml
  2. 2 2
      test/emqx_mod_sup_SUITE.erl

+ 2 - 2
.github/workflows/run_test_cases.yaml

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

+ 2 - 2
test/emqx_mod_sup_SUITE.erl

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