zrlw opened a new issue #8980:
URL: https://github.com/apache/dubbo/issues/8980
### Environment
* Dubbo version: 3.0 / master
3.0 github日志:
```
org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
at
org.apache.dubbo.registry.support.FailbackRegistryTest.testRecover(FailbackRegistryTest.java:173)
```
173行代码为:```Assertions.assertEquals(0,
mockRegistry.getFailedRegistered().size());```
原因:FailedRegisteredTask和FailedSubscribedTask的doRetry都是先执行doRegister或doSubscribe,再删掉failed
task;但MockRegistry在doRegister和doSubscribe就做了latch.countDown(),所以latch.await()返回时机过早导致上述断言失败。
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]