self = <test_populate.TestPopulateMetadata object at 0x7fd0b2488a10>
fixture = <test_populate.Screen2Plates object at 0x7fd0b24a42d0>
batch_size = 10
@mark.parametrize("fixture", METADATA_FIXTURES, ids=METADATA_IDS)
@mark.parametrize("batch_size", (None, 1, 10))
def testPopulateMetadata(self, fixture, batch_size):
"""
We should really test each of the parsing contexts in separate tests
but in practice each one uses data created by the others, so for
now just run them all together
"""
fixture.init(self)
> t = self._test_parsing_context(fixture, batch_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test/integration/metadata/test_populate.py:1024:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/integration/metadata/test_populate.py:896: in _test_parsing_context
self.delete(fixture.get_annotations())
../../../../.venv3/lib64/python3.11/site-packages/omero/testlib/__init__.py:1057: in delete
self.do_submit(command, self.client)
../../../../.venv3/lib64/python3.11/site-packages/omero/testlib/__init__.py:820: in do_submit
cb.loop(20, 500)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = object #0 (::omero::cmd::CmdCallback)
{
}, loops = 20, ms = 500
def loop(self, loops, ms):
"""
Calls block(long) "loops" number of times with the "ms"
argument. This means the total wait time for the delete to occur
is: loops X ms. Sensible values might be 10 loops for 500 ms, or
5 seconds.
@param loops Number of times to call block(long)
@param ms Number of milliseconds to pass to block(long
@throws omero.LockTimeout if block(long) does not return
a non-null value after loops calls.
"""
count = 0
found = False
while count < loops:
count += 1
found = self.block(ms)
if found:
break
if found:
return self.getResponse()
else:
waited = (ms / 1000.0) * loops
> raise omero.LockTimeout(
None, None, "Command unfinished after %s seconds" % waited,
5000, int(waited))
E omero.LockTimeout: exception ::omero::LockTimeout
E {
E serverStackTrace = None
E serverExceptionClass = None
E message = Command unfinished after 10.0 seconds
E backOff = 5000
E seconds = 10
E }
../../../../.venv3/lib64/python3.11/site-packages/omero/callbacks.py:258: LockTimeout