Merge pull request #12809 from thalesmg/test-flaky-hook-called-m-20240328

test: fix flaky test
This commit is contained in:
Thales Macedo Garitezi 2024-03-28 11:52:32 -03:00 committed by GitHub
commit a9ce4d7645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -584,6 +584,8 @@ message(Topic, Payload, PublishedAt) ->
id = emqx_guid:gen() id = emqx_guid:gen()
}. }.
on_message_dropped(#message{flags = #{sys := true}}, _Context, _Res, _TestPid) ->
ok;
on_message_dropped(Msg, Context, Res, TestPid) -> on_message_dropped(Msg, Context, Res, TestPid) ->
ErrCtx = #{msg => Msg, ctx => Context, res => Res}, ErrCtx = #{msg => Msg, ctx => Context, res => Res},
ct:pal("this hook should not be called.\n ~p", [ErrCtx]), ct:pal("this hook should not be called.\n ~p", [ErrCtx]),