Skip to content

PR #13

PR #13 #98

GitHub Actions / Test Results failed Jan 27, 2025 in 0s

1 fail, 4 skipped, 27 pass in 4s

32 tests  ±0   27 ✅ ±0   4s ⏱️ ±0s
 1 suites ±0    4 💤 ±0 
 1 files   ±0    1 ❌ ±0 

Results for commit 369d487. ± Comparison against earlier commit 049995f.

Annotations

Check warning on line 0 in tests.runtime_provider_test

See this annotation in the file changed.

@github-actions 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