mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-03 17:39:54 +00:00
chore: fix pylint
This commit is contained in:
parent
986ada3aeb
commit
27d7f9f6b9
@ -88,12 +88,7 @@ async def test_send_heartbeat(model_registry, model_instance):
|
|||||||
await model_registry.register_instance(model_instance)
|
await model_registry.register_instance(model_instance)
|
||||||
last_heartbeat = datetime.now() - timedelta(seconds=10)
|
last_heartbeat = datetime.now() - timedelta(seconds=10)
|
||||||
model_instance.last_heartbeat = last_heartbeat
|
model_instance.last_heartbeat = last_heartbeat
|
||||||
assert (
|
assert await model_registry.send_heartbeat(model_instance) == True
|
||||||
await model_registry.send_heartbeat(
|
|
||||||
model_instance
|
|
||||||
)
|
|
||||||
== True
|
|
||||||
)
|
|
||||||
assert (
|
assert (
|
||||||
model_registry.registry[model_instance.model_name][0].last_heartbeat
|
model_registry.registry[model_instance.model_name][0].last_heartbeat
|
||||||
> last_heartbeat
|
> last_heartbeat
|
||||||
|
Loading…
Reference in New Issue
Block a user