Skip to content

Commit 818ff01

Browse files
committed
chore(tests): skip WebSocket Hurl tests due to protocol limitations
Signed-off-by: Xin Liu <[email protected]>
1 parent 8113e88 commit 818ff01

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

run_tests.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,9 @@ else
199199
fi
200200

201201
echo ""
202-
echo "Testing WebSocket endpoints..."
203-
if hurl --test --color --variable port=$PORT tests/websocket.hurl; then
204-
echo -e "${GREEN}✅ WebSocket tests passed${NC}"
205-
else
206-
echo -e "${RED}❌ WebSocket tests failed${NC}"
207-
exit 1
208-
fi
202+
echo "⏭️ Skipping WebSocket Hurl tests..."
203+
echo " (WebSocket protocol is fully tested in Rust integration tests)"
204+
echo " (Hurl only supports HTTP/HTTPS, not WebSocket message exchange)"
209205

210206
echo ""
211207
echo "🛑 Step 5: Stopping server for Rust integration tests..."

tests/websocket.hurl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# WebSocket Proxy Tests
22
# Test suite for ss-proxy WebSocket proxy functionality
3+
#
4+
# ⚠️ WARNING: THIS FILE IS NOT EXECUTED IN CI/CD ⚠️
5+
#
6+
# Reason: Hurl does not support WebSocket message exchange protocol.
7+
# While Hurl can perform the WebSocket upgrade handshake (HTTP 101),
8+
# it cannot send/receive WebSocket frames or properly close connections.
9+
# This causes 300-second timeouts in automated tests.
10+
#
11+
# ✅ ALTERNATIVE: Complete WebSocket testing is done in Rust integration tests
12+
# See: tests/integration.rs
13+
# - test_websocket_echo (text messages)
14+
# - test_websocket_binary_message (binary messages)
15+
# - test_websocket_multiple_messages (message sequences)
16+
# - test_websocket_session_not_found (error handling)
17+
#
18+
# This file is kept for documentation purposes only.
19+
#
320

421
# =============================================================================
522
# WebSocket Echo Test - Text Message

0 commit comments

Comments
 (0)