In CI environments where a real tai gRPC endpoint is reachable on port 19100, the asynchronous connectTunnelNode goroutine can dial successfully and send an "open" TunnelControl frame on the Register stream before the test's "pong" arrives. Loop on Recv() and skip non-pong frames so the test passes regardless of whether connectTunnelNode fires in the background. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| proto | ||
| taipb | ||
| forward.go | ||
| forward_test.go | ||
| grpc_handler.go | ||
| grpc_handler_test.go | ||
| server.go | ||
| server_test.go | ||