Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Oct 10, 2024
1 parent 69a7257 commit e8f440b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion yarn-project/end-to-end/scripts/network_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function show_status_until_pxe_ready() {
}

show_status_until_pxe_ready &
SHOW_STATUS_PID=$!

# Install the Helm chart
helm upgrade --install spartan "$REPO/spartan/aztec-network/" \
Expand All @@ -78,8 +79,16 @@ kubectl wait pod -l app==pxe --for=condition=Ready -n "$NAMESPACE" --timeout=10m

# tunnel in to get access directly to our PXE service in k8s
(kubectl port-forward --namespace $NAMESPACE svc/spartan-aztec-network-pxe 9082:8080 2>/dev/null >/dev/null || true) &
PORT_FORWARD_PID=$!

cleanup() {
echo "Cleaning up..."
kill $PORT_FORWARD_PID || true
kill $SHOW_STATUS_PID || true
}

trap cleanup EXIT SIGINT SIGTERM

# run our test in the host network namespace (so we can access the above with localhost)
docker run --rm --network=host \
-e PXE_URL=http://localhost:9082 \
-e DEBUG="aztec:*" \
Expand Down

0 comments on commit e8f440b

Please sign in to comment.