test_logger fails on linux/python3.9 as part of IGWN Conda integration tests
The test/test_logging.py::test_logger
test function is failing repeatedly on Linux only on python3.9 when run as part of the IGWN Conda Distribution [ref]:
# Check results - there must be something weird with threading going on
# since if we don't sleep here, mock_write_log.call_args returns as None
time.sleep(0.01)
> call_args, call_kwargs = mock_write_log.call_args
E TypeError: cannot unpack non-iterable NoneType object
../../../envs/igwn-py39-testing/lib/python3.9/site-packages/ligo/gracedb/test/test_logging.py:37: TypeError
It looks like the time.sleep
just isn't long enough, or for some other reason the log isn't actually being emitted. I can't reproduce this outside of that environment.