[
https://issues.apache.org/jira/browse/SCB-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
YaoHaishi updated SCB-443:
--------------------------
Description:
- Fix randomly UT failure of TestProviderQpsFlowControlHandler
- Change the check method of some unit tests
---------------------------------------------------------------------------------
Travis-CI occurs randomly UT failure, logs see below.
Our analysis conclusion is that sometimes the UT runs a little bit slowly, so
the QpsController is refreshed and QPS mechanism is not triggered.
The solution is to mock System.currentTimeMillis().
!RandomlyUTFail.PNG!
was:
- Fix randomly UT failure of TestProviderQpsFlowControlHandler
- Change the check method of some unit tests
---------------------------------------------------------------------------------
Travis-CI occurs randomly UT failure, logs see below.
> Fix randomly UT failure of TestProviderQpsFlowControlHandler
> ------------------------------------------------------------
>
> Key: SCB-443
> URL: https://issues.apache.org/jira/browse/SCB-443
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: YaoHaishi
> Assignee: YaoHaishi
> Priority: Minor
> Attachments: ComplieWarning.PNG, RandomlyUTFail.PNG
>
>
> - Fix randomly UT failure of TestProviderQpsFlowControlHandler
> - Change the check method of some unit tests
> ---------------------------------------------------------------------------------
> Travis-CI occurs randomly UT failure, logs see below.
> Our analysis conclusion is that sometimes the UT runs a little bit slowly, so
> the QpsController is refreshed and QPS mechanism is not triggered.
> The solution is to mock System.currentTimeMillis().
> !RandomlyUTFail.PNG!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)