test: add tasks flushing in emqx_cm cases

This commit is contained in:
JimMoen 2021-11-15 19:36:54 +08:00
parent 59e6b6ee5b
commit cf80aaacc3
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ t_open_session_race_condition(_) ->
exit(Winner, kill),
receive {'DOWN', _, process, Winner, _} -> ok end,
ignored = gen_server:call(emqx_cm, ignore, infinity), %% sync
timer:sleep(100),
ok = emqx_pool:flush_async_tasks(),
?assertEqual([], emqx_cm:lookup_channels(ClientId)).
t_discard_session(_) ->