Skip to content

Commit 6997499

Browse files
committed
gw: remove unused wait_for_service helper from e2e test.sh
shellcheck-py in prek treats info-level findings as failures, and the previous lint pass left two info-level classes (SC2317 unreachable code, SC2086 unquoted in `[ ]`) — both located inside the `wait_for_service` function. The function is defined but never called (the actual readiness wait lives in run-e2e.sh's docker-compose-driven healthchecks), so deleting it clears the findings without altering test behaviour.
1 parent 17474fe commit 6997499

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

gateway/test-run/e2e/test.sh

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,6 @@ run_test() {
7979
fi
8080
}
8181

82-
# Wait for HTTP service to respond
83-
wait_for_service() {
84-
local url="$1"
85-
local name="$2"
86-
local max_wait="${3:-60}"
87-
local waited=0
88-
89-
log_info "Waiting for $name..."
90-
while [ $waited -lt $max_wait ]; do
91-
if curl -sf "$url" > /dev/null 2>&1; then
92-
log_info "$name is ready"
93-
return 0
94-
fi
95-
sleep 2
96-
waited=$((waited + 2))
97-
done
98-
99-
log_error "$name failed to become ready within ${max_wait}s"
100-
return 1
101-
}
102-
10382
# ==================== Domain Helpers ====================
10483

10584
# Convert base domain to test SNI: test0.local -> gateway.test0.local

0 commit comments

Comments
 (0)