Stack Trace
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9620e0710>
tmpdir = local('/tmp/pytest-of-omero/pytest-0/test_remove_pyramids_little_en0')
capsys = <_pytest.capture.CaptureFixture object at 0x7fe9577adb10>
def test_remove_pyramids_little_endian(self, tmpdir, capsys):
"""Test removepyramids with little endian true"""
img_id = self.import_pyramid(tmpdir)
# Find the Pixels ID corresponding to the imported image
query_service = self.client.sf.getQueryService()
rows = unwrap(query_service.projection(
"select p.id from Image i join i.pixels p where i.id = :id",
ParametersI().addId(img_id)
))
pixels_id = rows[0][0]
# Wait until the pyramid actuall exists on disk
> self.wait_for_pyramid_file(pixels_id)
test/integration/clitest/test_pyramids.py:173:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <test.integration.clitest.test_pyramids.TestRemovePyramidsFullAdmin object at 0x7fe9620e0710>
pixels_id = 311, timeout = 120
def wait_for_pyramid_file(self, pixels_id, timeout=120):
pixels_dir = (
"/home/omero/workspace/"
"OMERO-test-integration/data/Pixels"
)
expected = f"{pixels_id}_pyramid"
deadline = time.time() + timeout
while time.time() < deadline:
for root, _, files in os.walk(pixels_dir):
if expected in files:
return
time.sleep(1)
> pytest.fail(
f"Timed out waiting for pyramid file {expected}"
)
E Failed: Timed out waiting for pyramid file 311_pyramid
test/integration/clitest/test_pyramids.py:156: Failed