MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_update_heartbeat

Method test_update_heartbeat

tests/test_instance_registry.py:111–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 assert d["capabilities"] == ["manage_editor"]
110
111 def test_update_heartbeat(self) -> None:
112 instance = UnityInstance(
113 instance_id="/test",
114 project_name="Test",
115 unity_version="2022.3",
116 )
117 old_heartbeat = instance.last_heartbeat
118
119 # Small delay to ensure time difference
120 import time
121
122 time.sleep(0.01)
123
124 instance.update_heartbeat()
125 assert instance.last_heartbeat > old_heartbeat
126
127 def test_set_status_to_reloading(self) -> None:
128 instance = UnityInstance(

Callers

nothing calls this directly

Calls 2

update_heartbeatMethod · 0.95
UnityInstanceClass · 0.90

Tested by

no test coverage detected