You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (JIRA)" <ji...@apache.org> on 2018/04/02 01:23:00 UTC

[jira] [Resolved] (SCB-443) Fix randomly UT failure of TestProviderQpsFlowControlHandler

     [ https://issues.apache.org/jira/browse/SCB-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

YaoHaishi resolved SCB-443.
---------------------------
    Resolution: Fixed

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