Skip to content

Commit 657efd2

Browse files
committed
Fix e2e old-client compat tests killing exporter to mark offline
1 parent be596f9 commit 657efd2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

e2e/compat/tests-old-client.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ wait_for_compat_exporter() {
8080

8181
stop_compat_exporter() {
8282
# Kill the bash wrapper loop and any child jmp processes
83+
if [ -f "$COMPAT_PIDS_FILE" ]; then
84+
while IFS= read -r pid; do
85+
if [ -n "$pid" ]; then
86+
kill -9 "$pid" 2>/dev/null || true
87+
fi
88+
done < "$COMPAT_PIDS_FILE"
89+
fi
8390
pkill -9 -f "jmp run --exporter compat-old-exporter$" 2>/dev/null || true
8491
# Clear tracked PIDs since they're now dead
8592
echo "" > "$COMPAT_PIDS_FILE"

0 commit comments

Comments
 (0)