test: unlink process which is getting shutdown

This commit is contained in:
Zaiming (Stone) Shi 2023-01-15 12:43:25 +01:00
parent 4a7e74f5d6
commit 2afbf6a406
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ t_will_message_connection_denied(Config) when is_list(Config) ->
{will_payload, <<"should not be published">>}
]),
Ref = monitor(process, Publisher),
_ = unlink(Publisher),
{error, _} = emqtt:connect(Publisher),
receive
{'DOWN', Ref, process, Publisher, Reason} ->