From c132ba17222877e889fb7984f852e5f3cc950604 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@hoyer.xyz>
Date: Thu, 20 Mar 2025 17:02:00 +0100
Subject: [PATCH] fix(test): ensure vault-hier processes are terminated

- Add `killall vault-hier` to cleanup script in `test_local.sh`.
- Prevent potential leftover processes from interfering with tests.
---
 test_local.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test_local.sh b/test_local.sh
index 4ef0f35..71d82fa 100755
--- a/test_local.sh
+++ b/test_local.sh
@@ -53,6 +53,7 @@ cleanup() {
         kill -9 $VAULT_PID 2>/dev/null || true
         rm -f "$VAULT_PID_FILE"
     fi
+    killall vault-hier
     rm -f test_document.txt
     rm -rf /tmp/vault-test
     # We'll keep the logs for inspection