mirror of
https://github.com/ruvnet/RuView
synced 2026-08-01 19:01:42 +00:00
fix open issue release blockers
This commit is contained in:
@@ -3,6 +3,8 @@ import time
|
||||
import os
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
# Add project root and archive/v1 to sys.path so we can import src modules
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../../")))
|
||||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")))
|
||||
@@ -47,12 +49,7 @@ async def run_test():
|
||||
|
||||
# In pre-fix code, psutil.cpu_percent(interval=1) blocks for 1.0s,
|
||||
# causing a gap of >1.0s. With our fix, it should be close to 0.1s.
|
||||
if max_gap >= 0.35:
|
||||
print("FAIL: Event loop was frozen/blocked!")
|
||||
sys.exit(1)
|
||||
else:
|
||||
print("SUCCESS: Event loop remained fully responsive during metrics query!")
|
||||
sys.exit(0)
|
||||
return max_gap, duration
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_system_metrics_does_not_starve_event_loop():
|
||||
|
||||
Reference in New Issue
Block a user