apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.41k stars 2.92k forks source link

[BUG] Sometimes the spring cloud integration test will fail #2119

Closed lxl910128 closed 2 years ago

lxl910128 commented 2 years ago

Is there an existing issue for this?

Current Behavior

spring cloud Integration tests sometimes succeed and sometimes fail

Expected Behavior

Spring cloud Integration tests always successd when code is correct

Steps To Reproduce

No response

Environment

ShenYu version(s):

Debug logs

08:55:22.845 [main] INFO org.apache.shenyu.integratedtest.common.helper.HttpHelper - postGateway(/shenyu/plugin/saveOrUpdate) resp(success) 08:55:23.825 [main] INFO org.apache.shenyu.integratedtest.common.helper.HttpHelper - postGateway(/springcloud/order/save) resp({"code":-109,"message":"SpringCloud serviceId does not exist or is configured incorrectly!","data":null})

Anything else?

No response

lxl910128 commented 2 years ago

I will try to fix this

lxl910128 commented 2 years ago

I found that even though the Eureka page shows that the service is UP, the third-party service still cannot obtain an instance from Eureka. So I Increase sleep time.