@@ -63,20 +63,20 @@ jobs:
6363 # Start server in background and capture its PID
6464 timeout 10s mono server.exe > server.log 2>&1 &
6565 SERVER_PID=$!
66-
66+
6767 # Wait for server to start
6868 sleep 2
69-
69+
7070 # Run client and capture output
7171 timeout 5s mono client.exe > client.log 2>&1
7272 CLIENT_EXIT_CODE=$?
73-
73+
7474 # Wait a moment for server to process
7575 sleep 1
76-
76+
7777 # Kill server
7878 kill $SERVER_PID 2>/dev/null || true
79-
79+
8080 # Check if client completed successfully (exit code 0)
8181 if [ $CLIENT_EXIT_CODE -eq 0 ]; then
8282 echo "Client completed successfully"
8585 cat client.log
8686 exit 1
8787 fi
88-
88+
8989 # Check for success indicators in logs
9090 if grep -q "SSL version is" client.log && grep -q "SSL cipher suite is" client.log; then
9191 echo "TLS handshake successful - SSL version and cipher suite detected"
@@ -106,20 +106,20 @@ jobs:
106106 # Start server with SNI support in background
107107 timeout 10s mono server.exe -S > server_sni.log 2>&1 &
108108 SERVER_PID=$!
109-
109+
110110 # Wait for server to start
111111 sleep 2
112-
112+
113113 # Run client with SNI and capture output
114114 timeout 5s mono client.exe -S localhost > client_sni.log 2>&1
115115 CLIENT_EXIT_CODE=$?
116-
116+
117117 # Wait a moment for server to process
118118 sleep 1
119-
119+
120120 # Kill server
121121 kill $SERVER_PID 2>/dev/null || true
122-
122+
123123 # Check if client completed successfully
124124 if [ $CLIENT_EXIT_CODE -eq 0 ]; then
125125 echo "SNI client completed successfully"
@@ -128,7 +128,7 @@ jobs:
128128 cat client_sni.log
129129 exit 1
130130 fi
131-
131+
132132 # Check for SNI success indicators
133133 if grep -q "SSL version is" client_sni.log && grep -q "SSL cipher suite is" client_sni.log; then
134134 echo "SNI TLS handshake successful"
0 commit comments