mirror of
https://github.com/ruvnet/RuView
synced 2026-08-11 20:41:44 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -54,5 +54,9 @@ async def run_test():
|
|||||||
print("SUCCESS: Event loop remained fully responsive during metrics query!")
|
print("SUCCESS: Event loop remained fully responsive during metrics query!")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
@pytest.mark.asyncio
|
||||||
asyncio.run(run_test())
|
async def test_get_system_metrics_does_not_starve_event_loop():
|
||||||
|
max_gap, duration = await run_test()
|
||||||
|
# ticker sleeps 0.1s; allow slack for CI, but we should not see ~1s gaps
|
||||||
|
assert max_gap < 0.6
|
||||||
|
assert duration < 0.6
|
||||||
|
|||||||
Reference in New Issue
Block a user