This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit d5ce0267a5b268388b68bf0b7bd5f50c951dd12c Author: Nick Vatamaniuc <vatam...@apache.org> AuthorDate: Tue Sep 17 07:42:57 2024 -0400 Fix couch_debug test teardown exit(Pid, normal) is a no-op. Unlink they actually kill the process. --- src/couch/src/couch_debug.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/couch/src/couch_debug.erl b/src/couch/src/couch_debug.erl index db1f65947..ff864210f 100644 --- a/src/couch/src/couch_debug.erl +++ b/src/couch/src/couch_debug.erl @@ -1147,7 +1147,13 @@ setup() -> tree(). teardown({_InitialPid, Processes, _Tree}) -> - [exit(Pid, normal) || Pid <- Processes]. + [ + begin + (catch unlink(Pid)), + exit(Pid, kill) + end + || Pid <- Processes + ]. link_tree_test_() -> {