Merge pull request #6172 from JimMoen/fix-emqx_cm-ct

test: add tasks flushing in emqx_cm cases
This commit is contained in:
Zaiming (Stone) Shi 2021-11-15 17:17:27 +01:00 committed by GitHub
commit 650905667b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(_) ->