AlexStocks opened a new issue, #2851:
URL: https://github.com/apache/dubbo-go/issues/2851

   func TestUnavailableIfHostInvalid(t *testing.T) {
        t.Parallel()
        client := pingv1connect.NewPingServiceClient(
                http.DefaultClient,
                "https://api.invalid/";,
        )
        err := client.Ping(
                context.Background(),
                triple.NewRequest(&pingv1.PingRequest{}),
                triple.NewResponse(&pingv1.PingResponse{}),
        )
        assert.NotNil(t, err)
        assert.Equal(t, triple.CodeOf(err), triple.CodeUnavailable)
   }
   
   打开本地翻墙代理的情况下, unit test 报错: 
   
   
   --- FAIL: TestUnavailableIfHostInvalid (0.24s)
       triple_ext_test.go:803:
           assertion:   assert.Equal
           got: internal
           want:        unavailable
   
   本地代理配置:
   export https_proxy=http://127.0.0.1:7890 
   export http_proxy=http://127.0.0.1:7890
   export all_proxy=socks5://127.0.0.1:7890


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to