PR #13 #98
GitHub Actions / Test Results
failed
Jan 27, 2025 in 0s
1 fail, 4 skipped, 27 pass in 4s
Annotations
Check warning on line 0 in tests.runtime_provider_test
github-actions / Test Results
test_runtime_provider_in_task (tests.runtime_provider_test) failed
./junit.xml [took 0s]
Raw output
KeyError: 'task'
def test_runtime_provider_in_task():
logger, stream = logger_factory(JsonLogFormatter([RuntimeProvider()]))
async def run():
logger.info("hello world!")
async def main():
await asyncio.create_task(run(), name="MyTask")
asyncio.run(main())
record = read_stream_log_line(stream)
> assert record["task"] == "MyTask"
E KeyError: 'task'
tests/runtime_provider_test.py:45: KeyError
Loading