test(cm): add sleep time for multicore scheduling (#6164)

This commit is contained in:
JimMoen 2021-11-15 15:43:26 +08:00 committed by GitHub
commit 59e6b6ee5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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