<caseResult _class='hudson.tasks.junit.CaseResult'><age>14</age><className>OmeroPy.test.integration.test_rawpixelsstore.TestRPS</className><duration>131.304</duration><errorDetails>assert False</errorDetails><errorStackTrace>self = &lt;test.integration.test_rawpixelsstore.TestRPS object at 0x7f13ebbb1790&gt;
tmpdir = local('/tmp/pytest-of-omero/pytest-9/testPyramidConcurrentAccess0')

    def testPyramidConcurrentAccess(self, tmpdir):
        """
        See ticket:11709
        """
        all_context = {"omero.group": "-1"}
    
        from omero.util import concurrency
        pix = self.missing_pyramid()
        rps = self.sf.createRawPixelsStore(all_context)
        try:
            # First execution should certainly fail
            try:
                rps.setPixelsId(int(pix), True, all_context)
                assert False, "Should throw!"
            except omero.MissingPyramidException as mpm:
                assert int(pix) == mpm.pixelsID
    
            # Eventually, however, it should be generated
            i = 10
            success = False
            while i &gt; 0 and not success:
                try:
                    rps.setPixelsId(int(pix), True, all_context)
                    success = True
                except omero.MissingPyramidException as mpm:
                    assert int(pix) == mpm.pixelsID
                    backOff = mpm.backOff / 1000
                    event = concurrency.get_event("testRomio")
                    event.wait(backOff)  # seconds
                i -= 1
&gt;           assert success
E           assert False

test/integration/test_rawpixelsstore.py:185: AssertionError</errorStackTrace><failedSince>29</failedSince><name>testPyramidConcurrentAccess</name><properties></properties><skipped>false</skipped><status>FAILED</status></caseResult>