Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-532

unit-test fails on policy-handler on get /gc/stats after shutdown of the web-server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Beijing Release
    • Beijing Release
    • None

      was passing before - most likely due to timing delay of the web-server stopping

      11:25:17 tests/test_policyhandler.py::WebServerTest::test_zzzzz_shutdown PASSED [ 28%]
      11:25:22 tests/test_policyhandler.py::WebServerTest::test_gc <- .tox/py27/local/lib/python2.7/site-packages/cherrypy/test/helper.py FAILED [ 31%]
      11:30:29 =================================== FAILURES ===================================
      11:30:29 ____________________________ WebServerTest.test_gc _____________________________
      11:30:29
      11:30:29 self = <tests.test_policyhandler.WebServerTest testMethod=test_gc>
      11:30:29
      11:30:29 def test_gc(self):
      11:30:29 if not self.do_gc_test:
      11:30:29 return
      11:30:29
      11:30:29 > self.getPage('/gc/stats')
      11:30:29
      11:30:29 .tox/py27/local/lib/python2.7/site-packages/cherrypy/test/helper.py:289:

       


      another failure on rounding the floats and execution time too fast
      20:28:48 > assert self.exe_interval >= self.interval
      20:28:48 E assert 4.999747 >= 5

            alex_sh alex_sh
            alex_sh alex_sh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: