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
This commit is contained in:
parent
d70694b7ac
commit
7e941dca0e
1 changed files with 9 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue