Skip to content

Commit

Permalink
Merge pull request #10686 from rabbitmq/fix-dangling-spammer-process-…
Browse files Browse the repository at this point in the history
…in-feature_flags_SUITE

feature_flags_SUITE: Kill dangling spammer process in registry_concurrent_reloads()
  • Loading branch information
dumbbell committed Mar 6, 2024
2 parents b3597c7 + 2afffd5 commit ff6cbfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/rabbit/test/feature_flags_SUITE.erl
Expand Up @@ -548,8 +548,10 @@ registry_concurrent_reloads(_Config) ->
%% all added feature flags.
timer:sleep(1000),

MRef = erlang:monitor(process, Spammer),
unlink(Spammer),
exit(Spammer, normal).
exit(Spammer, kill),
receive {'DOWN', MRef, process, Spammer, _} -> ok end.

registry_spammer(CurrentFeatureNames, FinalFeatureNames) ->
%% Infinite loop.
Expand Down

0 comments on commit ff6cbfa

Please sign in to comment.