SahajDubey-2005 opened a new pull request, #16449:
URL: https://github.com/apache/dubbo/pull/16449

   ## What is the purpose of the change
   Optimizes the execution time of `ReconnectTimerTaskTest` in 
`dubbo-remoting-api`.
   
   ## Brief changelog
   - Reduced `tickDuration` from 1000ms to 30ms in test setup so that timer 
ticks are processed much faster.
   - Replaced rigid sleeps/delays with `Awaitility` using a tight polling 
interval (`10ms`) to verify channel reconnection immediately upon trigger.
   - Added `awaitility` test dependency to `dubbo-remoting-api/pom.xml`.
   
   ## Result
   - Test execution time decreased significantly from ~6.0s to ~1.96s (~67% 
reduction).
   - Verified spotless formatting and local test passes cleanly.
   
   ## Verifying this change
   Run the following Maven command:
   ```bash
   ./mvnw test -Dtest=ReconnectTimerTaskTest -pl 
dubbo-remoting/dubbo-remoting-api
   


-- 
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]

Reply via email to