• Jérome Perrin's avatar
    tests/slapproxy: give more time to slapproxy to start · a92ef82b
    Jérome Perrin authored
    Tests are sometimes failing with:
    
    ```
    ======================================================================
    FAIL: testForwardToMasterInList (slapos.tests.slapproxy.TestMultiMasterSupport)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/srv/slapgrid/slappart9/srv/testnode/byq/inst/test0-0/parts/slapos.core/slapos/tests/slapproxy/__init__.py", line 1003, in setUp
        self.startExternalProxy()
      File "/srv/slapgrid/slappart9/srv/testnode/byq/inst/test0-0/parts/slapos.core/slapos/tests/slapproxy/__init__.py", line 1050, in startExternalProxy
        self.fail('Could not start external proxy.')
    AssertionError: Could not start external proxy.
    
    ```
    
    especially on `COMP-2203-3Nodes-ERP5PROJECT2`. I logged on that machine and check the tests, it was really a problem that this slapproxy needs more than the `(20 * .1) = 2` seconds this tests waits before concluding that slap proxy could not start.
    
    Change the waiting loop to wait more each time. With this approach the max waiting time is 20 seconds.
    
    /reviewed-on !83
    a92ef82b
__init__.py 58.3 KB