Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-443

Fix randomly UT failure of TestProviderQpsFlowControlHandler

    XMLWordPrintableJSON

Details

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

      Attachments

        1. RandomlyUTFail.PNG
          19 kB
          Haishi Yao
        2. ComplieWarning.PNG
          3 kB
          Haishi Yao

        Issue Links

          Activity

            People

              yaohaishi Haishi Yao
              yaohaishi Haishi Yao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: