cperkkk commented on code in PR #7819:
URL: https://github.com/apache/incubator-seata/pull/7819#discussion_r2575157535
##########
common/src/test/java/org/apache/seata/common/rpc/RpcStatusTest.java:
##########
@@ -50,6 +50,10 @@ public void beginCount() {
@Test
public void endCount() {
+ // ensure a correct state before testing
Review Comment:
Hi @slievrly thank you for the reply:
the only problematic function is the endCount and not the other one, and
asserts to 0 only works if there's a beginCount and a beginCount that doesn't
run before removed service, so endCount evaluates to +1-1==0, if I use
beforeEach (for example adding removeStatus on beforeEach), I can do that but I
have to change assertions for the endCount to be -1, instead of 0, do you
prefer that to be used instead of the current one?
Thank you for your guidance.
--
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]