This is an automated email from the ASF dual-hosted git repository.

monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new fc39dd8c2 ci: fix the grpc test error (#10388)
fc39dd8c2 is described below

commit fc39dd8c2bd2069514dcfe878c788a22e8c96bf2
Author: Ruidong-X <[email protected]>
AuthorDate: Wed Oct 25 16:50:14 2023 +0800

    ci: fix the grpc test error (#10388)
---
 ci/centos7-ci.sh                    |  9 ++-------
 ci/common.sh                        | 21 +++++++++++++++++++++
 ci/linux_openresty_common_runner.sh | 15 +--------------
 ci/redhat-ci.sh                     | 10 +++-------
 t/admin/protos-force-delete.t       |  2 +-
 t/core/grpc.t                       |  8 ++++----
 t/grpc_server_example/main.go       |  4 ++--
 t/node/grpc-proxy-mtls.t            |  4 ++--
 t/node/grpc-proxy-stream.t          |  6 +++---
 t/node/grpc-proxy-unary.t           |  8 ++++----
 t/node/grpc-proxy.t                 |  8 ++++----
 t/node/upstream-keepalive-pool.t    |  2 +-
 t/plugin/batch-requests-grpc.t      |  2 +-
 t/plugin/grpc-transcode.t           | 14 +++++++-------
 t/plugin/grpc-transcode2.t          | 22 +++++++++++-----------
 t/plugin/grpc-transcode3.t          | 12 ++++++------
 t/plugin/proxy-mirror3.t            |  2 +-
 17 files changed, 74 insertions(+), 75 deletions(-)

diff --git a/ci/centos7-ci.sh b/ci/centos7-ci.sh
index cf2d0387b..cf506ef54 100755
--- a/ci/centos7-ci.sh
+++ b/ci/centos7-ci.sh
@@ -58,14 +58,9 @@ install_dependencies() {
     cd t/grpc_server_example
 
     CGO_ENABLED=0 go build
-    ./grpc_server_example \
-        -grpc-address :50051 -grpcs-address :50052 -grpcs-mtls-address :50053 
-grpc-http-address :50054 \
-        -crt ../certs/apisix.crt -key ../certs/apisix.key -ca 
../certs/mtls_ca.crt \
-        > grpc_server_example.log 2>&1 || (cat grpc_server_example.log && exit 
1)&
-
     cd ../../
-    # wait for grpc_server_example to fully start
-    sleep 3
+
+    start_grpc_server_example
 
     # installing grpcurl
     install_grpcurl
diff --git a/ci/common.sh b/ci/common.sh
index 3ad1e651c..0aa9f9e85 100644
--- a/ci/common.sh
+++ b/ci/common.sh
@@ -151,3 +151,24 @@ linux_get_dependencies () {
     apt update
     apt install -y cpanminus build-essential libncurses5-dev libreadline-dev 
libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
 }
+
+function start_grpc_server_example() {
+    ./t/grpc_server_example/grpc_server_example \
+        -grpc-address :10051 -grpcs-address :10052 -grpcs-mtls-address :10053 
-grpc-http-address :10054 \
+        -crt ./t/certs/apisix.crt -key ./t/certs/apisix.key -ca 
./t/certs/mtls_ca.crt \
+        > grpc_server_example.log 2>&1 &
+
+    for (( i = 0; i <= 10; i++ )); do
+        sleep 0.5
+        GRPC_PROC=`ps -ef | grep grpc_server_example | grep -v grep || echo 
"none"`
+        if [[ $GRPC_PROC == "none" || "$i" -eq 10 ]]; then
+            echo "failed to start grpc_server_example"
+            ss -antp | grep 1005 || echo "no proc listen port 1005x"
+            cat grpc_server_example.log
+
+            exit 1
+        fi
+
+        ss -lntp | grep 10051 | grep grpc_server && break
+    done
+}
diff --git a/ci/linux_openresty_common_runner.sh 
b/ci/linux_openresty_common_runner.sh
index e4ed00905..466fe8b69 100755
--- a/ci/linux_openresty_common_runner.sh
+++ b/ci/linux_openresty_common_runner.sh
@@ -72,20 +72,7 @@ script() {
 
     set_coredns
 
-    ./t/grpc_server_example/grpc_server_example \
-        -grpc-address :50051 -grpcs-address :50052 -grpcs-mtls-address :50053 
-grpc-http-address :50054 \
-        -crt ./t/certs/apisix.crt -key ./t/certs/apisix.key -ca 
./t/certs/mtls_ca.crt \
-        &
-
-    # ensure grpc server example is already started
-    for (( i = 0; i <= 100; i++ )); do
-        if [[ "$i" -eq 100 ]]; then
-            echo "failed to start grpc_server_example in time"
-            exit 1
-        fi
-        nc -zv 127.0.0.1 50051 && break
-        sleep 1
-    done
+    start_grpc_server_example
 
     # APISIX_ENABLE_LUACOV=1 PERL5LIB=.:$PERL5LIB prove -Itest-nginx/lib -r t
     FLUSH_ETCD=1 prove --timer -Itest-nginx/lib -I./ -r $TEST_FILE_SUB_DIR | 
tee /tmp/test.result
diff --git a/ci/redhat-ci.sh b/ci/redhat-ci.sh
index 18fed3208..ff867fb71 100755
--- a/ci/redhat-ci.sh
+++ b/ci/redhat-ci.sh
@@ -58,14 +58,10 @@ install_dependencies() {
     pushd t/grpc_server_example
 
     CGO_ENABLED=0 go build
-    ./grpc_server_example \
-        -grpc-address :50051 -grpcs-address :50052 -grpcs-mtls-address :50053 
-grpc-http-address :50054 \
-        -crt ../certs/apisix.crt -key ../certs/apisix.key -ca 
../certs/mtls_ca.crt \
-        > grpc_server_example.log 2>&1 || (cat grpc_server_example.log && exit 
1)&
-
     popd
-    # wait for grpc_server_example to fully start
-    sleep 3
+
+    yum install -y iproute procps
+    start_grpc_server_example
 
     # installing grpcurl
     install_grpcurl
diff --git a/t/admin/protos-force-delete.t b/t/admin/protos-force-delete.t
index 909128924..db0e5d8ae 100644
--- a/t/admin/protos-force-delete.t
+++ b/t/admin/protos-force-delete.t
@@ -90,7 +90,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
diff --git a/t/core/grpc.t b/t/core/grpc.t
index 3be331a54..bd52d9e13 100644
--- a/t/core/grpc.t
+++ b/t/core/grpc.t
@@ -44,7 +44,7 @@ __DATA__
             local core = require "apisix.core"
             local gcli = core.grpc
             assert(gcli.load("t/grpc_server_example/proto/helloworld.proto"))
-            local conn = assert(gcli.connect("127.0.0.1:50051"))
+            local conn = assert(gcli.connect("127.0.0.1:10051"))
             local res, err = conn:call("helloworld.Greeter", "SayHello", {
                                         name = "apisix" })
             conn:close()
@@ -68,7 +68,7 @@ Hello apisix
             local core = require "apisix.core"
             local gcli = core.grpc
             assert(gcli.load("t/grpc_server_example/proto/helloworld.proto"))
-            local conn = assert(gcli.connect("127.0.0.1:50051"))
+            local conn = assert(gcli.connect("127.0.0.1:10051"))
             local st, err = conn:new_server_stream("helloworld.Greeter",
                 "SayHelloServerStream", { name = "apisix" })
             if not st then
@@ -100,7 +100,7 @@ Hello apisix
             local core = require "apisix.core"
             local gcli = core.grpc
             assert(gcli.load("t/grpc_server_example/proto/helloworld.proto"))
-            local conn = assert(gcli.connect("127.0.0.1:50051"))
+            local conn = assert(gcli.connect("127.0.0.1:10051"))
             local st, err = conn:new_client_stream("helloworld.Greeter",
                 "SayHelloClientStream", { name = "apisix" })
             if not st then
@@ -139,7 +139,7 @@ Hello apisix!Hello apisix!Hello apisix!Hello apisix!
             local core = require "apisix.core"
             local gcli = core.grpc
             assert(gcli.load("t/grpc_server_example/proto/helloworld.proto"))
-            local conn = assert(gcli.connect("127.0.0.1:50051"))
+            local conn = assert(gcli.connect("127.0.0.1:10051"))
             local st, err = conn:new_bidirectional_stream("helloworld.Greeter",
                 "SayHelloBidirectionalStream", { name = "apisix" })
             if not st then
diff --git a/t/grpc_server_example/main.go b/t/grpc_server_example/main.go
index 6eb4a9b32..f6253df3a 100644
--- a/t/grpc_server_example/main.go
+++ b/t/grpc_server_example/main.go
@@ -53,8 +53,8 @@ import (
 )
 
 var (
-       grpcAddr      = ":50051"
-       grpcsAddr     = ":50052"
+       grpcAddr      = ":10051"
+       grpcsAddr     = ":10052"
        grpcsMtlsAddr string
        grpcHTTPAddr  string
 
diff --git a/t/node/grpc-proxy-mtls.t b/t/node/grpc-proxy-mtls.t
index b238431e2..b4d31b9d6 100644
--- a/t/node/grpc-proxy-mtls.t
+++ b/t/node/grpc-proxy-mtls.t
@@ -59,7 +59,7 @@ routes:
         client_cert: "-----BEGIN 
CERTIFICATE-----\nMIIDUzCCAjugAwIBAgIURw+Rc5FSNUQWdJD+quORtr9KaE8wDQYJKoZIhvcNAQEN\nBQAwWDELMAkGA1UEBhMCY24xEjAQBgNVBAgMCUd1YW5nRG9uZzEPMA0GA1UEBwwG\nWmh1SGFpMRYwFAYDVQQDDA1jYS5hcGlzaXguZGV2MQwwCgYDVQQLDANvcHMwHhcN\nMjIxMjAxMTAxOTU3WhcNNDIwODE4MTAxOTU3WjBOMQswCQYDVQQGEwJjbjESMBAG\nA1UECAwJR3VhbmdEb25nMQ8wDQYDVQQHDAZaaHVIYWkxGjAYBgNVBAMMEWNsaWVu\ndC5hcGlzaXguZGV2MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzypq\nkrsJ8MaqpS0kr2SboE9aRKOJzd6mY3AZLq3tFpio5cK5o
 [...]
         client_key: "-----BEGIN RSA PRIVATE 
KEY-----\nMIIEpAIBAAKCAQEAzypqkrsJ8MaqpS0kr2SboE9aRKOJzd6mY3AZLq3tFpio5cK5\noIHkQLfeaaLcd4ycFcZwFTpxc+Eth6I0X9on+j4tEibc5IpDnRSAQlzHZzlrOG6W\nxcOza4VmfcrKqj27oodroqXv05r/5yIoRrEN9ZXfA8n2OnjhkP+C3Q68L6dBtPpv\n+e6HaAuw8MvcsEo+MQwucTZyWqWT2UzKVzToW29dHRW+yZGuYNWRh15X09VSvx+E\n0s+uYKzN0Cyef2C6VtBJKmJ3NtypAiPqw7Ebfov2Ym/zzU9pyWPi3P1mYPMKQqUT\n/FpZSXm4iSy0a5qTYhkFrFdV1YuYYZL5YGl9aQIDAQABAoIBAD7tUG//lnZnsj/4\nJXONaORaFj5ROrOpFPuRemS+egzqFCuuaXpC2lV6RH
 [...]
       nodes:
-        "127.0.0.1:50053": 1
+        "127.0.0.1:10053": 1
       type: roundrobin
 #END
 --- exec
@@ -88,7 +88,7 @@ routes:
         client_cert: "-----BEGIN 
CERTIFICATE-----\nMIIDUzCCAjugAwIBAgIURw+Rc5FSNUQWdJD+quORtr9KaE8wDQYJKoZIhvcNAQEN\nBQAwWDELMAkGA1UEBhMCY24xEjAQBgNVBAgMCUd1YW5nRG9uZzEPMA0GA1UEBwwG\nWmh1SGFpMRYwFAYDVQQDDA1jYS5hcGlzaXguZGV2MQwwCgYDVQQLDANvcHMwHhcN\nMjIxMjAxMTAxOTU3WhcNNDIwODE4MTAxOTU3WjBOMQswCQYDVQQGEwJjbjESMBAG\nA1UECAwJR3VhbmdEb25nMQ8wDQYDVQQHDAZaaHVIYWkxGjAYBgNVBAMMEWNsaWVu\ndC5hcGlzaXguZGV2MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzypq\nkrsJ8MaqpS0kr2SboE9aRKOJzd6mY3AZLq3tFpio5cK5o
 [...]
         client_key: "-----BEGIN RSA PRIVATE 
KEY-----\nMIIEpAIBAAKCAQEAzypqkrsJ8MaqpS0kr2SboE9aRKOJzd6mY3AZLq3tFpio5cK5\noIHkQLfeaaLcd4ycFcZwFTpxc+Eth6I0X9on+j4tEibc5IpDnRSAQlzHZzlrOG6W\nxcOza4VmfcrKqj27oodroqXv05r/5yIoRrEN9ZXfA8n2OnjhkP+C3Q68L6dBtPpv\n+e6HaAuw8MvcsEo+MQwucTZyWqWT2UzKVzToW29dHRW+yZGuYNWRh15X09VSvx+E\n0s+uYKzN0Cyef2C6VtBJKmJ3NtypAiPqw7Ebfov2Ym/zzU9pyWPi3P1mYPMKQqUT\n/FpZSXm4iSy0a5qTYhkFrFdV1YuYYZL5YGl9aQIDAQABAoIBAD7tUG//lnZnsj/4\nJXONaORaFj5ROrOpFPuRemS+egzqFCuuaXpC2lV6RH
 [...]
       nodes:
-        "127.0.0.1:50053": 1
+        "127.0.0.1:10053": 1
       type: roundrobin
 #END
 --- exec
diff --git a/t/node/grpc-proxy-stream.t b/t/node/grpc-proxy-stream.t
index 1f10b9aad..2e3da185d 100644
--- a/t/node/grpc-proxy-stream.t
+++ b/t/node/grpc-proxy-stream.t
@@ -47,7 +47,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -85,7 +85,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -111,7 +111,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
diff --git a/t/node/grpc-proxy-unary.t b/t/node/grpc-proxy-unary.t
index f1a063c54..62870dc70 100644
--- a/t/node/grpc-proxy-unary.t
+++ b/t/node/grpc-proxy-unary.t
@@ -47,7 +47,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -73,7 +73,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -99,7 +99,7 @@ routes:
     upstream:
       scheme: grpcs
       nodes:
-        "127.0.0.1:50052": 1
+        "127.0.0.1:10052": 1
       type: roundrobin
 #END
 --- exec
@@ -131,7 +131,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
diff --git a/t/node/grpc-proxy.t b/t/node/grpc-proxy.t
index 01ba461f0..c4f0dd036 100644
--- a/t/node/grpc-proxy.t
+++ b/t/node/grpc-proxy.t
@@ -207,7 +207,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -239,7 +239,7 @@ routes:
       scheme: grpc
       pass_host: node
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
@@ -251,7 +251,7 @@ grpcurl -import-path ./t/grpc_server_example/proto -proto 
helloworld.proto -plai
 --- grep_error_log eval
 qr/grpc header: "(:authority|host): [^"]+"/
 --- grep_error_log_out eval
-qr/grpc header: "(:authority|host): 127.0.0.1:50051"/
+qr/grpc header: "(:authority|host): 127.0.0.1:10051"/
 
 
 
@@ -272,7 +272,7 @@ routes:
       pass_host: rewrite
       upstream_host: hello.world
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec
diff --git a/t/node/upstream-keepalive-pool.t b/t/node/upstream-keepalive-pool.t
index a8a625ad9..4fc4a1ae1 100644
--- a/t/node/upstream-keepalive-pool.t
+++ b/t/node/upstream-keepalive-pool.t
@@ -751,7 +751,7 @@ $/
                     scheme = "",
                     type = "roundrobin",
                     nodes = {
-                        ["127.0.0.1:50054"] = 1,
+                        ["127.0.0.1:10054"] = 1,
                     },
                     keepalive_pool = {
                         size = 4
diff --git a/t/plugin/batch-requests-grpc.t b/t/plugin/batch-requests-grpc.t
index 4acd50054..28b9d39d4 100644
--- a/t/plugin/batch-requests-grpc.t
+++ b/t/plugin/batch-requests-grpc.t
@@ -128,7 +128,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
diff --git a/t/plugin/grpc-transcode.t b/t/plugin/grpc-transcode.t
index 53f676a0c..e261bf7bd 100644
--- a/t/plugin/grpc-transcode.t
+++ b/t/plugin/grpc-transcode.t
@@ -157,7 +157,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -225,7 +225,7 @@ qr/\{"message":"Hello world"\}/
                         "scheme": "asf",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -361,7 +361,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -418,7 +418,7 @@ qr/\{"result":"#2251799813685261"\}/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -466,7 +466,7 @@ qr/\{"message":"Hello apisix"\}/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -581,7 +581,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -734,7 +734,7 @@ failed to encode request data to protobuf
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
diff --git a/t/plugin/grpc-transcode2.t b/t/plugin/grpc-transcode2.t
index da91d3ceb..66baf9a2b 100644
--- a/t/plugin/grpc-transcode2.t
+++ b/t/plugin/grpc-transcode2.t
@@ -87,7 +87,7 @@ __DATA__
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -171,7 +171,7 @@ Content-Type: application/json
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -262,7 +262,7 @@ failed to encode request data to protobuf
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -311,7 +311,7 @@ Content-Type: application/json
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -338,7 +338,7 @@ Content-Type: application/json
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -444,7 +444,7 @@ passed
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -533,7 +533,7 @@ qr/request log: 
\{.*body":\"\\u0000\\u0000\\u0000\\u0000\\u0002\\b\\u0003"/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -617,7 +617,7 @@ qr/request log: \{.*body":\"\{\\"result\\":3}/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -644,7 +644,7 @@ qr/request log: \{.*body":\"\{\\"result\\":3}/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -737,7 +737,7 @@ set protobuf option: enum_as_name
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -763,7 +763,7 @@ set protobuf option: enum_as_name
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
diff --git a/t/plugin/grpc-transcode3.t b/t/plugin/grpc-transcode3.t
index 0cdbe6e16..bd4164d3b 100644
--- a/t/plugin/grpc-transcode3.t
+++ b/t/plugin/grpc-transcode3.t
@@ -92,7 +92,7 @@ __DATA__
                         "scheme": "grpc",
                             "type": "roundrobin",
                             "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -172,7 +172,7 @@ Content-Type: application/json
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -243,7 +243,7 @@ qr/error/
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -316,7 +316,7 @@ grpc-status-details-bin: 
CA4SDk91dCBvZiBzZXJ2aWNlGlcKKnR5cGUuZ29vZ2xlYXBpcy5jb20
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -389,7 +389,7 @@ grpc-status-details-bin: 
CA4SDk91dCBvZiBzZXJ2aWNlGlcKKnR5cGUuZ29vZ2xlYXBpcy5jb20
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
@@ -473,7 +473,7 @@ transform response error: failed to call pb.decode to 
decode details in grpc-sta
                         "scheme": "grpc",
                         "type": "roundrobin",
                         "nodes": {
-                            "127.0.0.1:50051": 1
+                            "127.0.0.1:10051": 1
                         }
                     }
                 }]]
diff --git a/t/plugin/proxy-mirror3.t b/t/plugin/proxy-mirror3.t
index 65a23dc82..967ef0c11 100644
--- a/t/plugin/proxy-mirror3.t
+++ b/t/plugin/proxy-mirror3.t
@@ -63,7 +63,7 @@ routes:
     upstream:
       scheme: grpc
       nodes:
-        "127.0.0.1:50051": 1
+        "127.0.0.1:10051": 1
       type: roundrobin
 #END
 --- exec

Reply via email to