High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: scope E2E_SERVER restore to the retain-body script instead of leaking via EXIT trap
Luigi Agostibd7f8e6f70bb
diff --git a/tests/e2e/scenarios/api/network-retain-body.sh b/tests/e2e/scenarios/api/network-retain-body.shindex 433753d7..5c1e2d04 100644--- a/tests/e2e/scenarios/api/network-retain-body.sh+++ b/tests/e2e/scenarios/api/network-retain-body.sh@@ -14,7 +14,6 @@ fiNETWORK_RETAIN_OLD_SERVER="$E2E_SERVER"E2E_SERVER="$E2E_RETAIN_SERVER"-trap 'E2E_SERVER="$NETWORK_RETAIN_OLD_SERVER"' EXITpt_post /navigate -d "{\"url\":\"${FIXTURES_URL}/network-retain-body.html\"}"assert_ok "navigate to retention fixture"@@ -25,6 +24,7 @@ if [ -z "$REQ_ID" ] || [ "$REQ_ID" = "null" ]; thenecho -e " ${RED}✗${NC} could not find retained-body request in network buffer"((ASSERTIONS_FAILED++)) || trueend_test+ E2E_SERVER="$NETWORK_RETAIN_OLD_SERVER"exit 0fi@@ -74,3 +74,4 @@ elsefiend_test+E2E_SERVER="$NETWORK_RETAIN_OLD_SERVER"