fix: test not updated after rebase

This commit is contained in:
Stefan Strigler 2023-04-14 16:40:25 +02:00
parent edd1bc579f
commit 24df1045de
1 changed files with 4 additions and 1 deletions

View File

@ -147,7 +147,10 @@ t_check(_) ->
[self() ! {msg, I} || I <- lists:seq(1, 5)],
?assertEqual(ok, emqx_utils:check_oom(Policy)),
[self() ! {msg, I} || I <- lists:seq(1, 6)],
?assertEqual({shutdown, message_queue_too_long}, emqx_utils:check_oom(Policy)).
?assertEqual(
{shutdown, #{reason => message_queue_too_long, value => 11, max => 10}},
emqx_utils:check_oom(Policy)
).
drain() ->
drain([]).