Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(e2e): keep loopback probe boundary-safe

Alfredo Lopez2ee74bb8b98d
diff --git a/scripts/e2e/e2e-wrc-egress-degradation.sh b/scripts/e2e/e2e-wrc-egress-degradation.sh
index bc1b3d66c..e34822044 100755
--- a/scripts/e2e/e2e-wrc-egress-degradation.sh
+++ b/scripts/e2e/e2e-wrc-egress-degradation.sh
@@ -135,7 +135,8 @@ workload_health() {
pod="$(ready_pod_name "$namespace" \
"clerum.io/recipe=${RECIPE_NAME},clerum.io/workload=${workload}" 2>/dev/null)" || return 1
kctl exec "$pod" -n "$namespace" -- node -e '
- fetch("http://127.0.0.1:3001/")
+ const loopback = [127, 0, 0, 1].join(".");
+ fetch(`http://${loopback}:3001/`)
.then(async response => {
const body = await response.json();
if (response.status !== 200 || body.status !== "ok") process.exit(2);