mirror of
https://github.com/wassname/ray.git
synced 2026-08-16 11:27:09 +08:00
UI improvement for asyncio (#6905)
This commit is contained in:
@@ -61,11 +61,11 @@ def test_worker_stats(shutdown_only):
|
||||
target_worker_present = False
|
||||
for worker in reply.workers_stats:
|
||||
stats = worker.core_worker_stats
|
||||
if stats.webui_display == "test":
|
||||
if stats.webui_display[""] == '{"message": "test", "dtype": "text"}':
|
||||
target_worker_present = True
|
||||
assert worker.pid == worker_pid
|
||||
else:
|
||||
assert stats.webui_display == ""
|
||||
assert stats.webui_display[""] == "" # Empty proto
|
||||
assert target_worker_present
|
||||
|
||||
# Test show_in_webui for remote actors.
|
||||
@@ -75,11 +75,11 @@ def test_worker_stats(shutdown_only):
|
||||
target_worker_present = False
|
||||
for worker in reply.workers_stats:
|
||||
stats = worker.core_worker_stats
|
||||
if stats.webui_display == "test":
|
||||
if stats.webui_display[""] == '{"message": "test", "dtype": "text"}':
|
||||
target_worker_present = True
|
||||
assert worker.pid == worker_pid
|
||||
else:
|
||||
assert stats.webui_display == ""
|
||||
assert stats.webui_display[""] == "" # Empty proto
|
||||
assert target_worker_present
|
||||
|
||||
timeout_seconds = 20
|
||||
|
||||
Reference in New Issue
Block a user