From 7e941dca0e34e7cb3f5e39631d312c539cb7c80b Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 8 Mar 2026 11:41:32 +0800 Subject: [PATCH] fix(tai/volume): update test gRPC port default from 9100 to 19100 Align taiTestGRPC() helper with the new Tai 1.2.0 port standard. Also support TAI_TEST_HOST and TAI_TEST_GRPC_PORT env vars used by CI. Made-with: Cursor --- tai/volume/volume_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tai/volume/volume_test.go b/tai/volume/volume_test.go index 116943db..41339325 100644 --- a/tai/volume/volume_test.go +++ b/tai/volume/volume_test.go @@ -14,7 +14,15 @@ func taiTestGRPC() string { if addr := os.Getenv("TAI_TEST_GRPC"); addr != "" { return addr } - return "127.0.0.1:9100" + host := os.Getenv("TAI_TEST_HOST") + if host == "" { + host = "127.0.0.1" + } + port := os.Getenv("TAI_TEST_GRPC_PORT") + if port == "" { + port = "19100" + } + return host + ":" + port } func TestLocalVolume(t *testing.T) {